equal
deleted
inserted
replaced
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; |