V
- the graph vertex typepublic class StringNameProvider<V> extends Object implements VertexNameProvider<V>
Object.toString()
on them. This assumes that the vertex's
Object.toString()
method returns a unique representation for each vertex.Constructor and Description |
---|
StringNameProvider() |
Modifier and Type | Method and Description |
---|---|
String |
getVertexName(V vertex)
Returns the string representation of a vertex.
|
public String getVertexName(V vertex)
getVertexName
in interface VertexNameProvider<V>
vertex
- the vertex to be namedCopyright © 2016. All rights reserved.