Package org.jgrapht

Interface VertexFactory<V>

  • Type Parameters:
    V - the graph vertex type
    All Known Implementing Classes:
    ClassBasedVertexFactory

    public interface VertexFactory<V>
    A vertex factory used by graph algorithms for creating new vertices. Normally, vertices are constructed by user code and added to a graph explicitly, but algorithms which generate new vertices require a factory.
    Since:
    Sep 16, 2003
    • Method Detail

      • createVertex

        V createVertex()
        Creates a new vertex.
        Returns:
        the new vertex