lemon/smart_graph.h
changeset 316 689f24ee83e6
parent 238 79643f6e8c52
child 313 64f8f7cc6168
equal deleted inserted replaced
8:ce32cbdfb373 9:97ffafd89c99
   298     ///referencing a moved arc remain
   298     ///referencing a moved arc remain
   299     ///valid. However <tt>InArc</tt>'s and <tt>OutArc</tt>'s
   299     ///valid. However <tt>InArc</tt>'s and <tt>OutArc</tt>'s
   300     ///may be invalidated.
   300     ///may be invalidated.
   301     ///\warning This functionality cannot be used together with the Snapshot
   301     ///\warning This functionality cannot be used together with the Snapshot
   302     ///feature.
   302     ///feature.
   303     ///\todo It could be implemented in a bit faster way.
       
   304     Node split(Node n, bool connect = true)
   303     Node split(Node n, bool connect = true)
   305     {
   304     {
   306       Node b = addNode();
   305       Node b = addNode();
   307       nodes[b._id].first_out=nodes[n._id].first_out;
   306       nodes[b._id].first_out=nodes[n._id].first_out;
   308       nodes[n._id].first_out=-1;
   307       nodes[n._id].first_out=-1;