Package org.jgrapht.graph
Class ClassBasedEdgeFactory<V,E>
java.lang.Object
org.jgrapht.graph.ClassBasedEdgeFactory<V,E>
- All Implemented Interfaces:
Serializable
,EdgeFactory<V,
E>
An
EdgeFactory
for producing edges by using a class as a factory.- Since:
- Jul 14, 2003
- Author:
- Barak Naveh
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateEdge
(V source, V target) Creates a new edge whose endpoints are the specified source and target vertices.
-
Constructor Details
-
ClassBasedEdgeFactory
-
-
Method Details
-
createEdge
Description copied from interface:EdgeFactory
Creates a new edge whose endpoints are the specified source and target vertices.- Specified by:
createEdge
in interfaceEdgeFactory<V,
E> - Parameters:
source
- the source vertex.target
- the target vertex.- Returns:
- a new edge whose endpoints are the specified source and target vertices.
- See Also:
-