|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgrapht.ext.IntegerNameProvider<V>
public class IntegerNameProvider<V>
Assigns a unique integer to represent each vertex. Each instance of IntegerNameProvider maintains an internal map between every vertex it has ever seen and the unique integer representing that vertex. As a result it is probably desirable to have a separate instance for each distinct graph.
Constructor Summary | |
---|---|
IntegerNameProvider()
|
Method Summary | |
---|---|
void |
clear()
Clears all cached identifiers, and resets the unique identifier counter. |
java.lang.String |
getVertexName(V vertex)
Returns the String representation of the unique integer representing a vertex. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IntegerNameProvider()
Method Detail |
---|
public void clear()
public java.lang.String getVertexName(V vertex)
getVertexName
in interface VertexNameProvider<V>
vertex
- the vertex to be named
GraphListener.edgeAdded(GraphEdgeChangeEvent)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |