protected class DirectedAcyclicGraph.TopoVertexMap extends java.lang.Object implements DirectedAcyclicGraph.TopoOrderMap<V>
| Constructor and Description |
|---|
TopoVertexMap()
Constructor
|
| Modifier and Type | Method and 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.
|
public void putVertex(java.lang.Integer index,
V vertex)
DirectedAcyclicGraph.TopoOrderMapputVertex in interface DirectedAcyclicGraph.TopoOrderMap<V>index - the topological indexvertex - the vertexpublic V getVertex(java.lang.Integer index)
DirectedAcyclicGraph.TopoOrderMapgetVertex in interface DirectedAcyclicGraph.TopoOrderMap<V>index - the topological indexpublic java.lang.Integer getTopologicalIndex(V vertex)
DirectedAcyclicGraph.TopoOrderMapgetTopologicalIndex in interface DirectedAcyclicGraph.TopoOrderMap<V>vertex - the vertexpublic java.lang.Integer removeVertex(V vertex)
DirectedAcyclicGraph.TopoOrderMapremoveVertex in interface DirectedAcyclicGraph.TopoOrderMap<V>vertex - the vertexpublic void removeAllVertices()
DirectedAcyclicGraph.TopoOrderMapremoveAllVertices in interface DirectedAcyclicGraph.TopoOrderMap<V>Copyright © 2019. All Rights Reserved.