If a directed Edge is implemented something like:
class EdgeImpl(origin: Node, dest: Node) {
def from = origin
def to = dest
}
then which is the difference for implementing an undirected Edge
while when we create a new Edge
we also have to say in both cases: new EdgeImpl(node1, node2)
? I do not get the difference in implementation :(
Edit
I was analyzing, more concretely, this example