Method Summary |
|
public void | addChild(GraphNode child) Adds a child to end of the child list. |
public Object | clone() Returns a copy of the object. |
public Bag | getBag() Returns the bag of objects associated with the node. |
public List | getChildren() Returns a reference to the parents of the node. |
public int | getDepth() Returns the depth of the node in the graph. |
public String | getID() Returns the logical id of the graph node. |
public String | getName() Returns the logical name of the graph node. |
public List | getParents() Returns a reference to the parents of the node. |
public boolean | isColor(int color) Returns if the color of the node is as specified. |
public boolean | parentsColored(int color) Returns if all the parents of that node have the color that is specified.
Parameters: color - the color of the node. |
public void | setBag(Bag bag) Sets the bag of objects associated with the node. |
public void | setChildren(List children) It sets the children to the node. |
public void | setColor(int color) |
public void | setDepth(int depth) Sets the depth associated with the node. |
public void | setParents(List parents) It adds the parents to the node. |
public String | toString() The textual representation of the graph node. |