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