Closed dkipping closed 6 years ago
When trying to use the rolx example, I got the error:
*** Error: Execution stopped: !IsNode(NId) [Reason:'NodeId 0 already exists'], file graph.cpp, line 12
Turns out, the AddNode(NId) method in graph.cpp throws that Error when an Edge from a Node to itself exists.
So when I have a line 0 0 in my edge list, it will fail. Removing these edges solves the problem.
0 0
Is the behavior meant to be that way? Shall this only work when removing these Edges or is this a bug?
Yes, loops are not allowed for rolx.
When trying to use the rolx example, I got the error:
*** Error: Execution stopped: !IsNode(NId) [Reason:'NodeId 0 already exists'], file graph.cpp, line 12
Turns out, the AddNode(NId) method in graph.cpp throws that Error when an Edge from a Node to itself exists.
So when I have a line
0 0
in my edge list, it will fail. Removing these edges solves the problem.Is the behavior meant to be that way? Shall this only work when removing these Edges or is this a bug?