]> granicus.if.org Git - graphviz/commitdiff
sfdpgen maximal_…: remove unused 'randomize' parameter
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 23 Jul 2022 15:39:08 +0000 (08:39 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Fri, 29 Jul 2022 00:54:05 +0000 (17:54 -0700)
lib/sfdpgen/Multilevel.c

index e34a38042cfdd83fbf5f177c20b5bb9d05a16347..8cdb238d340965a5f6028687f437fa4153058ece 100644 (file)
@@ -643,7 +643,7 @@ static int scomp(const void *s1, const void *s2){
 }
 
 static void maximal_independent_edge_set_heavest_cluster_pernode_leaves_first(SparseMatrix A, int csize, 
-                                                                             int randomize, int **cluster, int **clusterp, int *ncluster){
+                                                                             int **cluster, int **clusterp, int *ncluster){
   int i, ii, j, *ia, *ja, m, n, *p = NULL, q, iv;
   (void)n;
   double *a;
@@ -895,7 +895,7 @@ static void Multilevel_coarsen_internal(SparseMatrix A, SparseMatrix *cA, Sparse
     } else if (ctrl->coarsen_scheme == COARSEN_INDEPENDENT_EDGE_SET_HEAVEST_EDGE_PERNODE_SUPERNODES_FIRST) {
       maximal_independent_edge_set_heavest_edge_pernode_supernodes_first(A, ctrl->randomize, &cluster, &clusterp, &ncluster);
     } else {
-      maximal_independent_edge_set_heavest_cluster_pernode_leaves_first(A, 4, ctrl->randomize, &cluster, &clusterp, &ncluster);
+      maximal_independent_edge_set_heavest_cluster_pernode_leaves_first(A, 4, &cluster, &clusterp, &ncluster);
     }
     assert(ncluster <= n);
     nc = ncluster;