org.jscience.computing.graph
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.

Since:
Sep 16, 2003

Method Summary
 java.lang.Object createVertex()
          Creates a new vertex.
 

Method Detail

createVertex

java.lang.Object createVertex()
Creates a new vertex.

Returns:
the new vertex