Return new node when using graph:addNode

This commit is contained in:
Robert Machmer 2016-01-02 15:27:02 +01:00
parent 4bf0d0473d
commit f5931d5ce8

View File

@ -75,6 +75,7 @@ function Graph.new()
function self:addNode( id, name, x, y )
assert( not nodes[id], "Node IDs must be unique." );
nodes[id] = Node.new( id, name, x, y );
return nodes[id];
end
---