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