We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c0bd6b commit 0feff6cCopy full SHA for 0feff6c
1 file changed
fd/Graph.lua
@@ -96,6 +96,8 @@ function Graph.new()
96
-- @param target - The node id to which the edge is pointing to.
97
--
98
function self:connectIDs( originID, targetID )
99
+ assert( nodes[originID], string.format( "Tried to add an Edge to the nonexistent Node \"%s\".", originID ));
100
+ assert( nodes[targetID], string.format( "Tried to add an Edge to the nonexistent Node \"%s\".", targetID ));
101
addEdge( nodes[originID], nodes[targetID] );
102
end
103
0 commit comments