public class DigraphEdge
extends java.lang.Object
Constructor and Description |
---|
DigraphEdge(DigraphNode originNode,
DigraphNode destinationNode)
Initializes a new DigraphEdge connecting two given DigraphNodes.
|
Modifier and Type | Method and Description |
---|---|
DigraphNode |
getFromNode()
Returns the DigraphNode at which the DigraphEdge begins
|
DigraphNode |
getToNode()
Returns the DigraphNode at which the DigraphEdge ends
|
public DigraphEdge(DigraphNode originNode, DigraphNode destinationNode)
originNode
- the node at the beginning of the edgedestinationNode
- the node at the end of the edgepublic DigraphNode getFromNode()
public DigraphNode getToNode()