connect method

Edge connect(
  1. Node other
)

Connects the current Node with the other Node by creating (and returning) an Edge

Implementation

Edge connect(Node other) {
  return Edge(this, other);
}