This patch changes Block::removeEdge to return a valid iterator to the new next element, and uses this to update the edge removal algorithm in LinkGraph::splitBlock.
This patch changes Block::removeEdge to return a valid iterator to the new next element, and uses this to update the edge removal algorithm in LinkGraph::splitBlock.