Method Summary |
|
public void | addChild(GraphNode child) Adds a child to end of the child list. |
public void | addParent(GraphNode parent) Adds a parent to end of the parent 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 list of GraphNode objects that are children of the
node. |
public GraphNodeContent | getContent() Returns the content associated with 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 list of GraphNode objects that are 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 | removeChild(GraphNode child) Removes a child linkage to the node. |
public void | removeParent(GraphNode parent) Removes a parent linkage to 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 | setContent(GraphNodeContent content) Sets the content associated with the node. |
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. |