org._3pq.jgrapht

Interface EdgeFactory

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

public interface EdgeFactory

An edge factory used by graphs for creating new edges.
Author:
Barak Naveh
Since:
Jul 14, 2003

Method Summary

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

Method Details

createEdge

public Edge createEdge(Object sourceVertex,
                       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.