Commit 4c09b597 authored by Roland Kluge's avatar Roland Kluge
Browse files

Fix for #12 in simonstrator-api (fix BasicGraph#createNode)

parent 15c47e71
......@@ -152,9 +152,7 @@ public class BasicGraph implements Graph {
if (this.containsNode(id)) {
return this.getNode(id);
} else {
Node newNode = new Node(id);
this.addNode(newNode);
return newNode;
return new Node(id);
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment