V
- the graph vertex typeE
- the graph edge typepublic class ClassBasedEdgeFactory<V,E> extends Object implements EdgeFactory<V,E>, Serializable
EdgeFactory
for producing edges by using a class as a factory.Constructor and Description |
---|
ClassBasedEdgeFactory(Class<? extends E> edgeClass)
Create a new class based edge factory.
|
Modifier and Type | Method and Description |
---|---|
E |
createEdge(V source,
V target)
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.EdgeFactory.createEdge(Object, Object)
Copyright © 2017. All rights reserved.