public void SetEdge(Node node1, Node node2) { VertexA = node1; VertexB = node2; VertexAActive = node1.Active; VertexBActive = node2.Active; _value = Value = VertexA.AddNode(node2, Value); VertexB.AddNode(node1, Value); UpdateEdge(); }