@Override
    public boolean equals(Object o) {
      if (this == o) return true;
      if (!(o instanceof Edge edge)) {
        return false;
      }
      return from == edge.from && to == edge.to;
    }
@Override
    public boolean equals(Object o)