Class DirectedAcyclicGraph.TopoVertexBiMap<V>

java.lang.Object
org.jgrapht.graph.DirectedAcyclicGraph.TopoVertexBiMap<V>
All Implemented Interfaces:
java.io.Serializable, DirectedAcyclicGraph.TopoOrderMap<V>
Enclosing class:
DirectedAcyclicGraph<V,​E>

protected static class DirectedAcyclicGraph.TopoVertexBiMap<V>
extends java.lang.Object
implements DirectedAcyclicGraph.TopoOrderMap<V>
A dual map implementation of the topological order map.
Author:
Peter Giles
See Also:
Serialized Form
  • Constructor Summary

    Constructors 
    Constructor Description
    TopoVertexBiMap()
    Constructor
  • Method Summary

    Modifier and Type Method Description
    java.lang.Integer getTopologicalIndex​(V vertex)
    Get the topological index of the given vertex.
    V getVertex​(java.lang.Integer index)
    Get the vertex at the given topological index.
    void putVertex​(java.lang.Integer index, V vertex)
    Add a vertex at the given topological index.
    void removeAllVertices()
    Remove all vertices from the topological ordering.
    java.lang.Integer removeVertex​(V vertex)
    Remove the given vertex from the topological ordering.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait