Interface IGraphObserver<V>

All Known Implementing Classes:
CountingAlg, 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 Type
    Method
    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.
    void
    Used to notify when a node is deleted from the graph.
    void
    Used to notify when a node is inserted into the graph.
  • Method Details

    • edgeInserted

      void edgeInserted(V source, V target)
      Used to notify when an edge is inserted into the graph.
      Parameters:
      source - the source of the edge
      target - the target of the edge
    • edgeDeleted

      void edgeDeleted(V source, V target)
      Used to notify when an edge is deleted from the graph.
      Parameters:
      source - the source of the edge
      target - the target of the edge
    • nodeInserted

      void nodeInserted(V n)
      Used to notify when a node is inserted into the graph.
      Parameters:
      n - the node
    • nodeDeleted

      void nodeDeleted(V n)
      Used to notify when a node is deleted from the graph.
      Parameters:
      n - the node