equal
deleted
inserted
replaced
499 /// |
499 /// |
500 ///\note The <tt>ArcIt</tt>s referencing a moved arc remain |
500 ///\note The <tt>ArcIt</tt>s referencing a moved arc remain |
501 ///valid. However <tt>InArcIt</tt>s and <tt>OutArcIt</tt>s may |
501 ///valid. However <tt>InArcIt</tt>s and <tt>OutArcIt</tt>s may |
502 ///be invalidated. |
502 ///be invalidated. |
503 /// |
503 /// |
504 ///\warning This functionality cannot be used together with the |
504 ///\warning This functionality cannot be used in conjunction with the |
505 ///Snapshot feature. |
505 ///Snapshot feature. |
506 /// |
|
507 ///\todo It could be implemented in a bit faster way. |
|
508 Node split(Node n, bool connect = true) { |
506 Node split(Node n, bool connect = true) { |
509 Node b = addNode(); |
507 Node b = addNode(); |
510 for(OutArcIt e(*this,n);e!=INVALID;) { |
508 for(OutArcIt e(*this,n);e!=INVALID;) { |
511 OutArcIt f=e; |
509 OutArcIt f=e; |
512 ++f; |
510 ++f; |