V
- the graph vertex typepublic static interface DirectedAcyclicGraph.TopoOrderMapping<V> extends Serializable
Modifier and Type | Method and Description |
---|---|
Integer |
getTopologicalIndex(V vertex)
Get the topological index of the given vertex.
|
V |
getVertex(Integer index)
Get the vertex at the given topological index.
|
void |
putVertex(Integer index,
V vertex)
Add a vertex at the given topological index.
|
void |
removeAllVertices()
Remove all vertices from the topological ordering
|
Integer |
removeVertex(V vertex)
Remove the given vertex from the topological ordering
|
void putVertex(Integer index, V vertex)
index
- the topological indexvertex
- the vertexV getVertex(Integer index)
index
- the topological indexInteger getTopologicalIndex(V vertex)
vertex
- the vertexInteger removeVertex(V vertex)
vertex
- the vertexvoid removeAllVertices()
Copyright © 2016. All rights reserved.