V - the graph vertex typeprotected static interface DirectedAcyclicGraph.TopoOrderMap<V>
extends java.io.Serializable
| 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.
|
void putVertex(java.lang.Integer index,
V vertex)
index - the topological indexvertex - the vertexV getVertex(java.lang.Integer index)
index - the topological indexjava.lang.Integer getTopologicalIndex(V vertex)
vertex - the vertexjava.lang.Integer removeVertex(V vertex)
vertex - the vertexvoid removeAllVertices()
Copyright © 2019. All Rights Reserved.