Bug fix in SmartGraph::restoreSnapshot() (#171)
authorPeter Kovacs <kpeter@inf.elte.hu>
Fri, 07 Nov 2008 12:00:53 +0100
changeset 3375a3d689ea770
parent 335 00c8843d491d
child 338 49d9a36b3b84
Bug fix in SmartGraph::restoreSnapshot() (#171)
lemon/smart_graph.h
     1.1 --- a/lemon/smart_graph.h	Thu Nov 06 23:12:57 2008 +0100
     1.2 +++ b/lemon/smart_graph.h	Fri Nov 07 12:00:53 2008 +0100
     1.3 @@ -730,8 +730,8 @@
     1.4          dir.push_back(arcFromId(n));
     1.5          dir.push_back(arcFromId(n-1));
     1.6          Parent::notifier(Arc()).erase(dir);
     1.7 -        nodes[arcs[n].target].first_out=arcs[n].next_out;
     1.8 -        nodes[arcs[n-1].target].first_out=arcs[n-1].next_out;
     1.9 +        nodes[arcs[n-1].target].first_out=arcs[n].next_out;
    1.10 +        nodes[arcs[n].target].first_out=arcs[n-1].next_out;
    1.11          arcs.pop_back();
    1.12          arcs.pop_back();
    1.13        }