Connection constructor

Connection(
  1. Node from,
  2. Node to
)

Implementation

Connection(this.from, this.to) {
  depth = max(from.depth, to.depth) + 1;
  identifier = "(${from.identifier},${to.identifier})";
}