Add nodes without name parameter

This commit is contained in:
Robert Machmer 2015-12-24 22:59:07 +01:00
parent 59a055da99
commit 2a258a96d5

View File

@ -56,7 +56,7 @@ function Graph.new()
for _, id in pairs( table.nodes ) do
local rx, ry = math.random( x, w ), math.random( y, h );
self:addNode( id, rx, ry );
self:addNode( id, nil, rx, ry );
end
for _, edge in pairs( table.edges ) do