Skip to content
  • Tiago Peixoto's avatar
    Fix edge indexing problem when modifying graph · dc184b46
    Tiago Peixoto authored
    This fixes a rather central bug, which causes duplicated indexes if
    edges are removed and then new ones are added. Edge indexes are now
    recycled as they are removed and then new ones are added. This still
    guarantees O(1) complexity when adding or removing edges.
    dc184b46