java.lang.Object
org.jgrapht.graph.DirectedAcyclicGraph.TopoVertexBiMap<V>
- All Implemented Interfaces:
- Serializable,- DirectedAcyclicGraph.TopoOrderMap<V>
- Enclosing class:
- DirectedAcyclicGraph<V,E> 
protected static class DirectedAcyclicGraph.TopoVertexBiMap<V>
extends Object
implements DirectedAcyclicGraph.TopoOrderMap<V>
A dual map implementation of the topological order map.
- Author:
- Peter Giles
- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetTopologicalIndex(V vertex) Get the topological index of the given vertex.Get the vertex at the given topological index.voidAdd a vertex at the given topological index.voidRemove all vertices from the topological ordering.removeVertex(V vertex) Remove the given vertex from the topological ordering.
- 
Constructor Details- 
TopoVertexBiMappublic TopoVertexBiMap()Constructor
 
- 
- 
Method Details- 
putVertexDescription copied from interface:DirectedAcyclicGraph.TopoOrderMapAdd a vertex at the given topological index.- Specified by:
- putVertexin interface- DirectedAcyclicGraph.TopoOrderMap<V>
- Parameters:
- index- the topological index
- vertex- the vertex
 
- 
getVertexDescription copied from interface:DirectedAcyclicGraph.TopoOrderMapGet the vertex at the given topological index.- Specified by:
- getVertexin interface- DirectedAcyclicGraph.TopoOrderMap<V>
- Parameters:
- index- the topological index
- Returns:
- vertex the vertex
 
- 
getTopologicalIndexDescription copied from interface:DirectedAcyclicGraph.TopoOrderMapGet the topological index of the given vertex.- Specified by:
- getTopologicalIndexin interface- DirectedAcyclicGraph.TopoOrderMap<V>
- Parameters:
- vertex- the vertex
- Returns:
- the index that the vertex is at, or null if the vertex isn't in the topological ordering
 
- 
removeVertexDescription copied from interface:DirectedAcyclicGraph.TopoOrderMapRemove the given vertex from the topological ordering.- Specified by:
- removeVertexin interface- DirectedAcyclicGraph.TopoOrderMap<V>
- Parameters:
- vertex- the vertex
- Returns:
- the index that the vertex was at, or null if the vertex wasn't in the topological ordering
 
- 
removeAllVerticespublic void removeAllVertices()Description copied from interface:DirectedAcyclicGraph.TopoOrderMapRemove all vertices from the topological ordering.- Specified by:
- removeAllVerticesin interface- DirectedAcyclicGraph.TopoOrderMap<V>
 
 
-