org._3pq.jgrapht
Interface EdgeFactory
- EdgeFactories.DirectedEdgeFactory, EdgeFactories.DirectedWeightedEdgeFactory, EdgeFactories.UndirectedEdgeFactory, EdgeFactories.UndirectedWeightedEdgeFactory
public interface EdgeFactory
An edge factory used by graphs for creating new edges.
Edge | createEdge(Object sourceVertex, Object targetVertex) - Creates a new edge whose endpoints are the specified source and target
vertices.
|
createEdge
public Edge createEdge(Object sourceVertex,
Object targetVertex)
Creates a new edge whose endpoints are the specified source and target
vertices.
sourceVertex
- the source vertex.targetVertex
- the target vertex.
- a new edge whose endpoints are the specified source and target
vertices.