mirror of
https://github.com/rm-code/Graphoon.git
synced 2024-11-16 18:24:22 +00:00
Rename self:addEdge to self:connectNodes
This commit is contained in:
parent
436ec9f78f
commit
732037bd04
@ -95,7 +95,7 @@ function Graph.new()
|
|||||||
-- @param origin - The node from which the edge originates.
|
-- @param origin - The node from which the edge originates.
|
||||||
-- @param target - The node to which the edge is pointing to.
|
-- @param target - The node to which the edge is pointing to.
|
||||||
--
|
--
|
||||||
function self:addEdge( origin, target )
|
function self:connectNodes( origin, target )
|
||||||
for _, edge in pairs(edges) do
|
for _, edge in pairs(edges) do
|
||||||
if edge.origin == origin and edge.target == target then
|
if edge.origin == origin and edge.target == target then
|
||||||
error "Trying to connect nodes which are already connected.";
|
error "Trying to connect nodes which are already connected.";
|
||||||
|
Loading…
Reference in New Issue
Block a user