public 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) |
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 © 2016. All rights reserved.