Esempio n. 1
0
        public void addEdge(CircleNode child, int action)
        {
            CircleEdge newEdge = new CircleEdge(this, child, action);

            newEdge.setBusy();
            this._edges.Add(newEdge);
            child.setParent(this);
        }
Esempio n. 2
0
 public void addNode(CircleNode childNode, CircleNode 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);
 }