]> granicus.if.org Git - graphviz/commitdiff
sfdpgen: remove unused 'node_weights' from 'spring_electrical_embedding_slow'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 24 May 2022 03:14:48 +0000 (20:14 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 28 May 2022 21:35:33 +0000 (14:35 -0700)
lib/sfdpgen/spring_electrical.c

index 8bcd5788ec7e36f11b6ea90abe7d65d52867fa5f..5c06ead167f1a29a7d3f1247adc3191429c04bac 100644 (file)
@@ -659,7 +659,7 @@ void spring_electrical_embedding_fast(int dim, SparseMatrix A0, spring_electrica
   free(force);
 }
 
-static void spring_electrical_embedding_slow(int dim, SparseMatrix A0, spring_electrical_control ctrl, double *node_weights, double *x, int *flag){
+static void spring_electrical_embedding_slow(int dim, SparseMatrix A0, spring_electrical_control ctrl, double *x, int *flag){
   /* a version that does vertex moves in one go, instead of one at a time, use for debugging the fast version. Quadtree is not used. */
   /* x is a point to a 1D array, x[i*dim+j] gives the coordinate of the i-th node at dimension j.  */
   SparseMatrix A = A0;
@@ -1947,7 +1947,7 @@ static void multilevel_spring_electrical_embedding_core(int dim, SparseMatrix A0
 #endif
     if (ctrl->method == METHOD_SPRING_ELECTRICAL){
       if (ctrl->tscheme == QUAD_TREE_NONE){
-       spring_electrical_embedding_slow(dim, grid->A, ctrl, grid->node_weights, xc, flag);
+       spring_electrical_embedding_slow(dim, grid->A, ctrl, xc, flag);
       } else if (ctrl->tscheme == QUAD_TREE_FAST || (ctrl->tscheme == QUAD_TREE_HYBRID && grid->A->m > QUAD_TREE_HYBRID_SIZE)){
        if (ctrl->tscheme == QUAD_TREE_HYBRID && grid->A->m > 10 && Verbose){
          fprintf(stderr, "QUAD_TREE_HYBRID, size larger than %d, switch to fast quadtree", QUAD_TREE_HYBRID_SIZE);