org._3pq.jgrapht

Interface VertexFactory

public interface VertexFactory

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.
Author:
John V. Sichi
Since:
Sep 16, 2003

Method Summary

Object
createVertex()
Creates a new vertex.

Method Details

createVertex

public Object createVertex()
Creates a new vertex.
Returns:
the new vertex