public class DirectedAcyclicGraph.TopoVertexMap extends Object implements DirectedAcyclicGraph.TopoOrderMapping<V>, DirectedAcyclicGraph.TopoOrderMappingFactory<V>
| Constructor and Description |
|---|
TopoVertexMap() |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getTopologicalIndex(V vertex)
Get the topological index of the given vertex.
|
DirectedAcyclicGraph.TopoOrderMapping<V> |
getTopoOrderMapping()
Create a new instance of a
DirectedAcyclicGraph.TopoOrderMapping. |
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
|
public void putVertex(Integer index, V vertex)
DirectedAcyclicGraph.TopoOrderMappingputVertex in interface DirectedAcyclicGraph.TopoOrderMapping<V>index - the topological indexvertex - the vertexpublic V getVertex(Integer index)
DirectedAcyclicGraph.TopoOrderMappinggetVertex in interface DirectedAcyclicGraph.TopoOrderMapping<V>index - the topological indexpublic Integer getTopologicalIndex(V vertex)
DirectedAcyclicGraph.TopoOrderMappinggetTopologicalIndex in interface DirectedAcyclicGraph.TopoOrderMapping<V>vertex - the vertexpublic Integer removeVertex(V vertex)
DirectedAcyclicGraph.TopoOrderMappingremoveVertex in interface DirectedAcyclicGraph.TopoOrderMapping<V>vertex - the vertexpublic void removeAllVertices()
DirectedAcyclicGraph.TopoOrderMappingremoveAllVertices in interface DirectedAcyclicGraph.TopoOrderMapping<V>public DirectedAcyclicGraph.TopoOrderMapping<V> getTopoOrderMapping()
DirectedAcyclicGraph.TopoOrderMappingFactoryDirectedAcyclicGraph.TopoOrderMapping.getTopoOrderMapping in interface DirectedAcyclicGraph.TopoOrderMappingFactory<V>DirectedAcyclicGraph.TopoOrderMappingCopyright © 2017. All rights reserved.