MCPcopy Create free account
hub / github.com/Gecode/gecode / pathset_ps

Function pathset_ps

gecode/int/gcc/bnd-sup.hpp:506–512  ·  view source on GitHub ↗

* \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

Source from the content-addressed store, hash-verified

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) {

Callers 1

lbcMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected