public interface EdgeFactory<T extends Edge>
Modifier and Type | Method and Description |
---|---|
T |
newInstance(java.lang.String id,
Node src,
Node dst,
boolean directed)
Create a new instance of edge.
|
T newInstance(java.lang.String id, Node src, Node dst, boolean directed)
id
- The new edge identifier.src
- The source node.dst
- The target node.directed
- Is the edge directed (in the direction source toward target).