Fixed a bug in removeEdge

The arrays in which an edge resides (node's out_edge and in_edge arrays
and the graph's edge array) were not updated correctly after removing
the edge.