Fixed bug when calling Digraph<Node, Edge>::eraseNodes().

When the function was called, the vector containing all the nodes
would be cleared completely; however, the vector that holds the
edges for every node would not be cleared as well. This might have
caused undefined behaviour.