node as a child of parent in the graph. If parent is null, node is added as a child of the (virtual) root node. Fails if the node already exists.
@param node the node to add
@param parent the existing node whose a child is to be added or null
@return true if add is successful, false otherwise
@throws IllegalArgumentException if node is null,or if parent is not legal in the graph
@throws IllegalMonitorStateException if the current thread is holding a read lock
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |