@@ -10,7 +10,7 @@ const HighsInt offset = 1;
1010
1111// ****************************************************************************80
1212
13- static void degree (HighsInt root, HighsInt adj_num, const HighsInt adj_row[],
13+ static void Highs_rcm_degree (HighsInt root, HighsInt adj_num, const HighsInt adj_row[],
1414 const HighsInt adj[], HighsInt mask[], HighsInt deg[],
1515 HighsInt* iccsze, HighsInt ls[], HighsInt node_num)
1616
@@ -149,7 +149,7 @@ static void degree(HighsInt root, HighsInt adj_num, const HighsInt adj_row[],
149149}
150150// ****************************************************************************80
151151
152- static void i4vec_reverse (HighsInt n, HighsInt a[])
152+ static void Highs_rcm_i4vec_reverse (HighsInt n, HighsInt a[])
153153
154154// ****************************************************************************80
155155//
@@ -204,7 +204,7 @@ static void i4vec_reverse(HighsInt n, HighsInt a[])
204204}
205205// ****************************************************************************80
206206
207- static void level_set (HighsInt root, HighsInt adj_num, const HighsInt adj_row[],
207+ static void Highs_rcm_level_set (HighsInt root, HighsInt adj_num, const HighsInt adj_row[],
208208 const HighsInt adj[], HighsInt mask[], HighsInt* level_num,
209209 HighsInt level_row[], HighsInt level[], HighsInt node_num)
210210
@@ -341,7 +341,7 @@ static void level_set(HighsInt root, HighsInt adj_num, const HighsInt adj_row[],
341341}
342342// ****************************************************************************80
343343
344- static HighsInt rcm (HighsInt root, HighsInt adj_num, const HighsInt adj_row[],
344+ static HighsInt Highs_rcm (HighsInt root, HighsInt adj_num, const HighsInt adj_row[],
345345 const HighsInt adj[], HighsInt mask[], HighsInt perm[],
346346 HighsInt* iccsze, HighsInt node_num)
347347
@@ -458,7 +458,7 @@ static HighsInt rcm(HighsInt root, HighsInt adj_num, const HighsInt adj_row[],
458458 //
459459 // Find the degrees of the nodes in the component specified by MASK and ROOT.
460460 //
461- degree (root, adj_num, adj_row, adj, mask, deg, iccsze, perm, node_num);
461+ Highs_rcm_degree (root, adj_num, adj_row, adj, mask, deg, iccsze, perm, node_num);
462462 //
463463 // If the connected component size is less than 1, something is wrong.
464464 //
@@ -551,7 +551,7 @@ static HighsInt rcm(HighsInt root, HighsInt adj_num, const HighsInt adj_row[],
551551 // We now have the Cuthill-McKee ordering.
552552 // Reverse it to get the Reverse Cuthill-McKee ordering.
553553 //
554- i4vec_reverse (*iccsze, perm);
554+ Highs_rcm_i4vec_reverse (*iccsze, perm);
555555 //
556556 // Free memory.
557557 //
@@ -561,7 +561,7 @@ static HighsInt rcm(HighsInt root, HighsInt adj_num, const HighsInt adj_row[],
561561}
562562// ****************************************************************************80
563563
564- static void root_find (HighsInt* root, HighsInt adj_num, const HighsInt adj_row[],
564+ static void Highs_rcm_root_find (HighsInt* root, HighsInt adj_num, const HighsInt adj_row[],
565565 const HighsInt adj[], HighsInt mask[], HighsInt* level_num,
566566 HighsInt level_row[], HighsInt level[], HighsInt node_num)
567567
@@ -670,7 +670,7 @@ static void root_find(HighsInt* root, HighsInt adj_num, const HighsInt adj_row[]
670670 //
671671 // Determine the level structure rooted at ROOT.
672672 //
673- level_set (*root, adj_num, adj_row, adj, mask, level_num, level_row, level,
673+ Highs_rcm_level_set (*root, adj_num, adj_row, adj, mask, level_num, level_row, level,
674674 node_num);
675675 //
676676 // Count the number of nodes in this level structure.
@@ -725,7 +725,7 @@ static void root_find(HighsInt* root, HighsInt adj_num, const HighsInt adj_row[]
725725 //
726726 // Generate the rooted level structure associated with this node.
727727 //
728- level_set (*root, adj_num, adj_row, adj, mask, &level_num2, level_row, level,
728+ Highs_rcm_level_set (*root, adj_num, adj_row, adj, mask, &level_num2, level_row, level,
729729 node_num);
730730 //
731731 // If the number of levels did not increase, accept the new ROOT.
@@ -838,12 +838,12 @@ HighsInt Highs_genrcm(HighsInt node_num, HighsInt adj_num,
838838 // Find a pseudo-peripheral node ROOT. The level structure found by
839839 // ROOT_FIND is stored starting at PERM(NUM).
840840 //
841- root_find (&root, adj_num, adj_row, adj, mask, &level_num, level_row,
841+ Highs_rcm_root_find (&root, adj_num, adj_row, adj, mask, &level_num, level_row,
842842 perm + num - 1 , node_num);
843843 //
844844 // RCM orders the component using ROOT as the starting node.
845845 //
846- if (rcm (root, adj_num, adj_row, adj, mask, perm + num - 1 , &iccsze,
846+ if (Highs_rcm (root, adj_num, adj_row, adj, mask, perm + num - 1 , &iccsze,
847847 node_num)) {
848848 delete[] level_row;
849849 delete[] mask;
0 commit comments