org._3pq.jgrapht
Interface EdgeFactory
- All Known Implementing Classes:
- org._3pq.jgrapht.edge.EdgeFactories.AbstractEdgeFactory
- public interface EdgeFactory
An edge factory used by graphs for creating new edges.
- Since:
- Jul 14, 2003
- Author:
- Barak Naveh
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. |
createEdge
public 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.