]> granicus.if.org Git - graphviz/commitdiff
sparse Multilevel_MQ_Clustering: remove duplicate 'n'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Mon, 26 Dec 2022 21:43:18 +0000 (13:43 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 31 Dec 2022 23:34:34 +0000 (15:34 -0800)
This variable was shadowing another `n` in the outer scope with the same value.

lib/sparse/mq.c

index 6bf2ac17c0884ac5eaec282865016ce16a4eb330..2ee63c68637575c23ab3d76776f89d1da85df8c9 100644 (file)
@@ -175,7 +175,7 @@ static Multilevel_MQ_Clustering Multilevel_MQ_Clustering_init(SparseMatrix A, in
 
   if (level == 0){
     double mq = 0, mq_in, mq_out;
-    int n = A->n, ncluster;
+    int ncluster;
     double *deg_intra, *wgt, *dout;
 
     grid->deg_intra = MALLOC(sizeof(double)*(n));