org.eclipse.viatra.query.runtime.base.itc.igraph

## Interface IGraphObserver<V>

- All Known Implementing Classes:
    CountingAlg, DFSAlg, DRedAlg, FloydWarshallAlg, IBiDirectionalWrapper, IncSCCAlg, PKAlg

      public interface IGraphObserver<V>

  Interface GraphObserver is used to observ the changes in a graph; edge and node insertion/deleteion.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    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.
    `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 Detail

    - #### 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