Exemplo n.º 1
0
        public void addEdge(RectangleNode child, int action)
        {
            RectangleEdge newEdge = new RectangleEdge(this, child, action);

            newEdge.setBusy();
            this._edges.Add(newEdge);
            child.setParent(this);
        }
Exemplo n.º 2
0
 public void addNode(RectangleNode childNode, RectangleNode parent, int action)
 {
     if (this.getSize() == 0)
     {
         this._nodes.Add(parent);
     }
     this._nodes.Add(childNode);
     parent.addEdge(childNode, action);
     childNode.setParent(parent);
     _nonBusyNodes.Add(childNode);
 }