public class DFSAlg<V> extends java.lang.Object implements IGraphObserver<V>
| Constructor and Description |
|---|
DFSAlg(IGraphDataSource<V> gds) |
| Modifier and Type | Method and Description |
|---|---|
void |
edgeDeleted(V source,
V target)
Used to notify when an edge is deleted from the graph.
|
void |
edgeInserted(V source,
V target)
Used to notify when an edge is inserted into the graph.
|
DRedTcRelation<V> |
getTcRelation() |
void |
nodeDeleted(V n)
Used to notify when a node is deleted from the graph.
|
void |
nodeInserted(V n)
Used to notify when a node is inserted into the graph.
|
public DFSAlg(IGraphDataSource<V> gds)
public DRedTcRelation<V> getTcRelation()
public void edgeInserted(V source, V target)
IGraphObserveredgeInserted in interface IGraphObserver<V>source - the source of the edgetarget - the target of the edgepublic void edgeDeleted(V source, V target)
IGraphObserveredgeDeleted in interface IGraphObserver<V>source - the source of the edgetarget - the target of the edgepublic void nodeInserted(V n)
IGraphObservernodeInserted in interface IGraphObserver<V>n - the nodepublic void nodeDeleted(V n)
IGraphObservernodeDeleted in interface IGraphObserver<V>n - the node