public void CheckNodeForRemove(PathNode node) { if (OutNodes.Contains(node)) { OutNodes.Remove(node); ReDraw(); } }
public void AddNode(PathNode node) { if (OutNodes.Contains(node)) { return; } if (node.OutNodes.Contains(this)) { return; } OutNodes.Add(node); ReDraw(); }
public void Merge(DummyNode that) { foreach (var n in that.OutNodes) { if (!OutNodes.Contains(n)) { _outEdges.Add(new Edge <Node, Node>(this, n)); } } foreach (var n in that.InNodes) { if (!InNodes.Contains(n)) { _inEdges.Add(new Edge <Node, Node>(n, this)); } } }