Interface VertexNameProvider<V>

All Known Implementing Classes:
IntegerNameProvider, StringNameProvider

public interface VertexNameProvider<V>
Assigns a display name for each of the graph vertices.
  • Method Summary

    Modifier and Type
    Method
    Description
    getVertexName(V vertex)
    Returns a unique name for a vertex.
  • Method Details

    • getVertexName

      String getVertexName(V vertex)
      Returns a unique name for a vertex. This is useful when exporting a a graph, as it ensures that all vertices are assigned simple, consistant names.
      Parameters:
      vertex - the vertex to be named
      Returns:
      the name of the vertex