diff --git a/fd/Graph.lua b/fd/Graph.lua index 193d6da..74368fc 100644 --- a/fd/Graph.lua +++ b/fd/Graph.lua @@ -173,6 +173,13 @@ function Graph.new() func( edges, nodes ); end + --- + -- Returns the node the id is pointing to. + -- param id - The id to check for. + function self:getNode( id ) + return nodes[id]; + end + --- -- Gets a node at a certain point in the graph. -- @param x - The x coordinate to check.