Remove unnecessary assignment to `nullptr`.
Remove unnecessary check for emptyness.
Fix bug due to the removal of items while iterating over their container.
Rename the traversal methods.
Remove the call to the topological sort as it isn't required when removing a node.
Add a simple sanity check for the `Network::deleteNode()` method.