示例#1
0
 public void CheckNodeForRemove(PathNode node)
 {
     if (OutNodes.Contains(node))
     {
         OutNodes.Remove(node);
         ReDraw();
     }
 }
示例#2
0
    public void AddNode(PathNode node)
    {
        if (OutNodes.Contains(node))
        {
            return;
        }

        if (node.OutNodes.Contains(this))
        {
            return;
        }

        OutNodes.Add(node);
        ReDraw();
    }
示例#3
0
 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));
         }
     }
 }