Skip to content
  • Tiago Peixoto's avatar
    Fix bug with self-loops in Graph.clear_vertex() · 23f6f40f
    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