Package org._3pq.jgrapht
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
- Author:
- Barak Naveh
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.
-
-