Fixed memory and time issue with removeRegularNodes
Removing a node now cleans up edges.