Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
API
Commits
4c09b597
Commit
4c09b597
authored
Jan 20, 2016
by
Roland Kluge
Browse files
Fix for #12 in simonstrator-api (fix BasicGraph#createNode)
parent
15c47e71
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tudarmstadt/maki/simonstrator/api/common/graph/BasicGraph.java
View file @
4c09b597
...
...
@@ -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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment