Interface IGraphObserver<V>
- All Known Implementing Classes:
CountingAlg
,DFSAlg
,DRedAlg
,FloydWarshallAlg
,IBiDirectionalWrapper
,IncSCCAlg
,PKAlg
,RepresentativeElectionAlgorithm
,StronglyConnectedComponentAlgorithm
,WeaklyConnectedComponentAlgorithm
public interface IGraphObserver<V>
Interface GraphObserver is used to observ the changes in a graph; edge and node insertion/deleteion.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.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.
-
Method Details
-
edgeInserted
Used to notify when an edge is inserted into the graph.- Parameters:
source
- the source of the edgetarget
- the target of the edge
-
edgeDeleted
Used to notify when an edge is deleted from the graph.- Parameters:
source
- the source of the edgetarget
- the target of the edge
-
nodeInserted
Used to notify when a node is inserted into the graph.- Parameters:
n
- the node
-
nodeDeleted
Used to notify when a node is deleted from the graph.- Parameters:
n
- the node
-