* \name Path compression * * Each of the nodes on the path from \a start to \a end * becomes a direct child of \a to. * \ingroup GCCBndSup */ @{ Path compression for potentially stable set structure
| 504 | //@{ |
| 505 | /// Path compression for potentially stable set structure |
| 506 | forceinline void |
| 507 | pathset_ps(HallInfo hall[], int start, int end, int to) { |
| 508 | int k, l; |
| 509 | for (l=start; (k=l) != end; hall[k].ps=to) { |
| 510 | l = hall[k].ps; |
| 511 | } |
| 512 | } |
| 513 | /// Path compression for stable set structure |
| 514 | forceinline void |
| 515 | pathset_s(HallInfo hall[], int start, int end, int to) { |