}
public void setRoot(Node root) {
if (this.root == null) {
this.root = root;
nodePath.push(root);
<BUG>} else {
System.err
.printf("Error in org.miv.graphstream.graph.Path: root is not null. First use the clear method.%n");</BUG>
}
}

}
public Node getRoot() {
return this.root;
}
public void setRoot(Node root) {
if (this.root == null) {
this.root = root;
nodePath.push(root);
} else {
logger.warning("Root node is not null - first use the clear method.");
}
}
