equal
deleted
inserted
replaced
492 /// |
492 /// |
493 ///\todo It could be implemented in a bit faster way. |
493 ///\todo It could be implemented in a bit faster way. |
494 Node split(Node n, bool connect = true) { |
494 Node split(Node n, bool connect = true) { |
495 Node b = addNode(); |
495 Node b = addNode(); |
496 for(OutArcIt e(*this,n);e!=INVALID;) { |
496 for(OutArcIt e(*this,n);e!=INVALID;) { |
497 OutArcIt f=e; |
497 OutArcIt f=e; |
498 ++f; |
498 ++f; |
499 changeSource(e,b); |
499 changeSource(e,b); |
500 e=f; |
500 e=f; |
501 } |
501 } |
502 if (connect) addArc(n,b); |
502 if (connect) addArc(n,b); |