public List<Node> getNodePath() {
return nodePath;
}
public void add(Node from, Edge edge) {
if (root == null) {
<BUG>if (from == null) {
System.err
.print("Error using org.miv.graphstream.graph.Path: Use setRoot( ) first. %n");
System.exit(0);</BUG>
} else {

public List<Node> getNodePath() {
return nodePath;
}
public void add(Node from, Edge edge) {
if (root == null) {
if (from == null) {
throw new IllegalArgumentException("From node cannot be null.");
} else {
