Пример #1
0
 public Edge(Vertex from, Vertex to, int weight)
 {
     this.From   = from;
     this.To     = to;
     this.Weight = weight;
     From.AddSubset(To);
     To.AddSubset(From);
 }