Fix constructor using the old addEdge function

This commit is contained in:
Robert Machmer 2016-01-09 04:01:56 +01:00
parent 9017b40da9
commit 4e5e302d32

View File

@ -79,7 +79,7 @@ function Graph.new()
end
for _, edge in pairs( table.edges ) do
self:addEdge( nodes[edge.origin], nodes[edge.target] );
addEdge( nodes[edge.origin], nodes[edge.target] );
end
end