Macaulay2 Engine
Loading...
Searching...
No Matches

◆ representative()

int partition_table::representative ( int x)
private

Definition at line 29 of file hilb.cpp.

30{
31 int i = x;
32 while (dad[i] >= 0) i = dad[i];
33 int j = x;
34 while (j != i)
35 {
36 int t = dad[j];
37 dad[j] = i;
38 j = t;
39 }
40 return i;
41}
volatile int x

References dad, and x.

Referenced by partition().