public int CompareTo(object obj) { VertexView v = obj as VertexView; if (obj != null) { return(this.Number.CompareTo(v.Number)); } else { throw new Exception("Невозможно сравнить два объекта"); } }
public EdgeView(VertexView v1, VertexView v2, int distance) { V1 = v1; V2 = v2; Distance = distance; }