Class 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 Detail

      • InvertedGraph

        public InvertedGraph​(GraphAdapter<N,​E> delegate)
    • Method Detail

      • 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)
      • getTip

        public final N getTip​(E edge,
                              EdgeTip tip)