Package org.jgrapht.ext
Class StringEdgeNameProvider<E>
java.lang.Object
org.jgrapht.ext.StringEdgeNameProvider<E>
- All Implemented Interfaces:
EdgeNameProvider<E>
Generates edge names by invoking
Object.toString() on them. This assumes
that the edge's Object.toString() method returns a unique String
representation for each edge.- Author:
- Trevor Harmon
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StringEdgeNameProvider
public StringEdgeNameProvider()
-
-
Method Details
-
getEdgeName
Returns the String representation an edge.- Specified by:
getEdgeNamein interfaceEdgeNameProvider<E>- Parameters:
edge- the edge to be named- Returns:
- the name of the edge
-