mirror of
https://github.com/rm-code/Graphoon.git
synced 2024-11-16 18:24:22 +00:00
Add nodes without name parameter
This commit is contained in:
parent
59a055da99
commit
2a258a96d5
@ -56,7 +56,7 @@ function Graph.new()
|
|||||||
|
|
||||||
for _, id in pairs( table.nodes ) do
|
for _, id in pairs( table.nodes ) do
|
||||||
local rx, ry = math.random( x, w ), math.random( y, h );
|
local rx, ry = math.random( x, w ), math.random( y, h );
|
||||||
self:addNode( id, rx, ry );
|
self:addNode( id, nil, rx, ry );
|
||||||
end
|
end
|
||||||
|
|
||||||
for _, edge in pairs( table.edges ) do
|
for _, edge in pairs( table.edges ) do
|
||||||
|
Loading…
Reference in New Issue
Block a user