V
- the graph vertex typeE
- the graph edge type@Deprecated public class ClassBasedEdgeFactory<V,E> extends Object implements EdgeFactory<V,E>, Serializable
EdgeFactory
for producing edges by using a class as a factory.
Note that when used inside a Graph
the factory must always return a unique object on each
call. This implementation calls the no-arguments constructor of the provided class. It is the
user's responsibility to make sure that the no-arguments constructor creates unique objects.
Constructor and Description |
---|
ClassBasedEdgeFactory(Class<? extends E> edgeClass)
Deprecated.
Create a new class based edge factory.
|
Modifier and Type | Method and Description |
---|---|
E |
createEdge(V source,
V target)
Deprecated.
Creates a new edge whose endpoints are the specified source and target vertices.
|
public E createEdge(V source, V target)
EdgeFactory
createEdge
in interface EdgeFactory<V,E>
source
- the source vertex.target
- the target vertex.Copyright © 2018. All rights reserved.