V
- the graph vertex typeE
- the graph edge type@Deprecated public interface EdgeFactory<V,E>
A graph uses the edge factory to create new edge objects whenever a user calls method
Graph.addEdge(Object, Object)
. Users can also create the edge in user code and then use
method Graph.addEdge(Object, Object, Object)
to add the edge.
Note that when used inside a Graph
the edge factory must return unique objects on each
call.
Modifier and Type | Method and Description |
---|---|
E |
createEdge(V sourceVertex,
V targetVertex)
Deprecated.
Use suppliers instead
|
@Deprecated E createEdge(V sourceVertex, V targetVertex)
sourceVertex
- the source vertex.targetVertex
- the target vertex.Copyright © 2018. All rights reserved.