G - The type of the graph.E - The type of the edge itself.N - The type of the nodes.public interface IEdge<G extends IGraph<G,E,N>,E extends IEdge<G,E,N>,N extends INode<G,E,N>> extends IExtensible
IEdge is an abstract interface to a common directed edge. It is possible to set as well as retrieve
the source and target nodes as well as to retrieve the parenting graph.
The generic parameter define what types are used for the graph and nodes as well as the edge itself. This allows to
extend any edge in a typesafe manner at compiletime. Additionally one may add any data to the edge using the
IExtensible interface methods at runtime.
For examples have a look at the Edge, pn.Flow or ts.Arc classes.| Modifier and Type | Method and Description |
|---|---|
G |
getGraph()
Retrieves the graph this edge is part of.
|
N |
getSource()
Retrieves the source node of this directed edge.
|
N |
getTarget()
Retrieves the target node of this directed edge.
|
getExtension, putExtension, removeExtensionG getGraph()
N getSource()
N getTarget()