The method getEdges() from the Node class returns a set of edges, so it removes duplicate edges that are important. For example, the "option" case (dotted line) uses two edges with the same source and destination to represent it, but only one is returned in the edge set.
The method
getEdges()
from the Node class returns a set of edges, so it removes duplicate edges that are important. For example, the "option" case (dotted line) uses two edges with the same source and destination to represent it, but only one is returned in the edge set.