public void addEdge(RectangleNode child, int action) { RectangleEdge newEdge = new RectangleEdge(this, child, action); newEdge.setBusy(); this._edges.Add(newEdge); child.setParent(this); }
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); }