org.jscience.computing.graph
Interface EdgeFactory

All Known Implementing Classes:
EdgeFactories.DirectedEdgeFactory, EdgeFactories.DirectedWeightedEdgeFactory, EdgeFactories.UndirectedEdgeFactory, EdgeFactories.UndirectedWeightedEdgeFactory

public interface EdgeFactory

An edge factory used by graphs for creating new edges.

Since:
Jul 14, 2003

Method Summary
 Edge createEdge(java.lang.Object sourceVertex, java.lang.Object targetVertex)
          Creates a new edge whose endpoints are the specified source and target vertices.
 

Method Detail

createEdge

Edge createEdge(java.lang.Object sourceVertex,
                java.lang.Object targetVertex)
Creates a new edge whose endpoints are the specified source and target vertices.

Parameters:
sourceVertex - the source vertex.
targetVertex - the target vertex.
Returns:
a new edge whose endpoints are the specified source and target vertices.