-
Tiago Peixoto authored
Since the same edge appears twice in Vertex.all_edges() if it is a self_loop, it would be deleted twice in Graph.clear_vertex(), raising an exception. Now, the edges are stored in a set first, avoiding this problem.
23f6f40f
Since the same edge appears twice in Vertex.all_edges() if it is a self_loop, it would be deleted twice in Graph.clear_vertex(), raising an exception. Now, the edges are stored in a set first, avoiding this problem.