Class InvertedGraph<N,E>

java.lang.Object
cdc.graphs.impl.GraphFilter<N,E>
cdc.graphs.impl.InvertedGraph<N,E>
Type Parameters:
N - Node class
E - Edge class
All Implemented Interfaces:
GraphAdapter<N,E>

public class InvertedGraph<N,E> extends GraphFilter<N,E>
Create an inverted view of a Graph. Nodes are the same, edges are the same, except that their direction is inverted.
Author:
Damien Carbonne
  • Constructor Details

  • Method Details

    • getNodes

      public final Iterable<? extends N> getNodes()
    • containsNode

      public final boolean containsNode(N node)
    • getEdges

      public final Iterable<? extends E> getEdges()
    • containsEdge

      public final boolean containsEdge(E edge)
    • getEdges

      public final Iterable<? extends E> getEdges(N node, EdgeDirection direction)
    • getTip

      public final N getTip(E edge, EdgeTip tip)