From f5931d5ce819d857522534ae23e1b6edc8648d70 Mon Sep 17 00:00:00 2001 From: Robert Machmer Date: Sat, 2 Jan 2016 15:27:02 +0100 Subject: [PATCH] Return new node when using graph:addNode --- fd/Graph.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/fd/Graph.lua b/fd/Graph.lua index a58b801..73a26b4 100644 --- a/fd/Graph.lua +++ b/fd/Graph.lua @@ -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 ---