public class DirectedAcyclicGraph.TopoVertexMap extends Object implements DirectedAcyclicGraph.TopoOrderMapping<V>, DirectedAcyclicGraph.TopoOrderMappingFactory<V>
Constructor and Description |
---|
DirectedAcyclicGraph.TopoVertexMap() |
Modifier and Type | Method and Description |
---|---|
Integer |
getTopologicalIndex(V vertex)
get the topological index of the given vertex.
|
DirectedAcyclicGraph.TopoOrderMapping<V> |
getTopoOrderMapping() |
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.TopoOrderMapping
putVertex
in interface DirectedAcyclicGraph.TopoOrderMapping<V>
public V getVertex(Integer index)
DirectedAcyclicGraph.TopoOrderMapping
getVertex
in interface DirectedAcyclicGraph.TopoOrderMapping<V>
public Integer getTopologicalIndex(V vertex)
DirectedAcyclicGraph.TopoOrderMapping
getTopologicalIndex
in interface DirectedAcyclicGraph.TopoOrderMapping<V>
public Integer removeVertex(V vertex)
DirectedAcyclicGraph.TopoOrderMapping
removeVertex
in interface DirectedAcyclicGraph.TopoOrderMapping<V>
public void removeAllVertices()
DirectedAcyclicGraph.TopoOrderMapping
removeAllVertices
in interface DirectedAcyclicGraph.TopoOrderMapping<V>
public DirectedAcyclicGraph.TopoOrderMapping<V> getTopoOrderMapping()
getTopoOrderMapping
in interface DirectedAcyclicGraph.TopoOrderMappingFactory<V>
Copyright © 2016. All rights reserved.