Deleting edgenode_1 del--> node_2;
It works. It removes the edge. Therefore, node still exits. That's correct behavior.
Deleting nodedel node_1
it removes the reference (pointer) from the variable node_1 to the actual node in memory. Therefore, still node is connected to the graph. You can also confirm this with dot visualization. But there is no reference for that node.
To Reproduce
When we delete a node, it only deletes reference/pointer. It doesn't remove that node from the graph. Therefore, we have to make changes to fix this bug.
Describe the bug
Deleting edge
node_1 del--> node_2;
It works. It removes the edge. Therefore, node still exits. That's correct behavior.Deleting node
del node_1
it removes the reference (pointer) from the variablenode_1
to the actual node in memory. Therefore, still node is connected to the graph. You can also confirm this with dot visualization. But there is no reference for that node.To Reproduce
When we delete a node, it only deletes reference/pointer. It doesn't remove that node from the graph. Therefore, we have to make changes to fix this bug.