Fix bug with self-loops in Graph.clear_vertex()
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.
Please register or sign in to comment