G - the graph the edge belongs to.E - the edge class itself.N - the node class belonging to the graph.public class Edge<G extends IGraph<G,E,N>,E extends IEdge<G,E,N>,N extends INode<G,E,N>> extends Extensible implements IEdge<G,E,N>
| Modifier and Type | Field and Description |
|---|---|
protected G |
graph |
protected N |
source |
protected N |
target |
| Modifier | Constructor and Description |
|---|---|
protected |
Edge(G graph,
Edge<G,E,N> e)
Constructor for copying an arc.
|
protected |
Edge(G graph,
N source,
N target)
Constructor for creating an arc with the sourceId and targetId in the given graph.
|
| 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.
|
java.lang.String |
toString() |
copyExtensions, getCopyExtensions, getExtension, getExtensions, getExtensionsWithoutProperty, getExtensionsWithProperty, getWriteToFileExtensions, hasExtension, putExtension, putExtension, removeExtensionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetExtension, putExtension, removeExtensionprotected Edge(G graph, N source, N target)
graph - The graph this Edge belongs to.source - the source node.target - the target node.public G getGraph()
IEdgepublic N getSource()
IEdgepublic N getTarget()
IEdgepublic java.lang.String toString()
toString in class java.lang.Object