]> granicus.if.org Git - graphviz/commitdiff
sfdpgen: remove 'node_weights' from 'SpringSmoother_smooth'
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 24 May 2022 02:48:34 +0000 (19:48 -0700)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Sat, 28 May 2022 21:35:33 +0000 (14:35 -0700)
This parameter is always passed as `NULL`.

lib/sfdpgen/post_process.c
lib/sfdpgen/post_process.h

index e97a55016d0847b4aac11d7f7fd1bcbcaeb06229..bd6a59bb4ef4548b10de962631f36f3f75f37865 100644 (file)
@@ -989,10 +989,10 @@ void SpringSmoother_delete(SpringSmoother sm){
 
 
 
-void SpringSmoother_smooth(SpringSmoother sm, SparseMatrix A, double *node_weights, int dim, double *x){
+void SpringSmoother_smooth(SpringSmoother sm, SparseMatrix A, int dim, double *x){
   int flag = 0;
 
-  spring_electrical_spring_embedding(dim, A, sm->D, sm->ctrl, node_weights, x, &flag);
+  spring_electrical_spring_embedding(dim, A, sm->D, sm->ctrl, NULL, x, &flag);
   assert(!flag);
 
 }
@@ -1053,7 +1053,7 @@ void post_process_smoothing(int dim, SparseMatrix A, spring_electrical_control c
 
     for (k = 0; k < 1; k++){
       sm = SpringSmoother_new(A, dim, ctrl, x);
-      SpringSmoother_smooth(sm, A, NULL, dim, x);
+      SpringSmoother_smooth(sm, A, dim, x);
       SpringSmoother_delete(sm);
     }
 
index 0fab08388bd7d370099e2ea91f376b20a6df66ab..a7f00b334929debe9b916ef3baefa5d46711aa21 100644 (file)
@@ -63,7 +63,7 @@ SpringSmoother SpringSmoother_new(SparseMatrix A, int dim, spring_electrical_con
 
 void SpringSmoother_delete(SpringSmoother sm);
 
-void SpringSmoother_smooth(SpringSmoother sm, SparseMatrix A, double *node_weights, int dim, double *x);
+void SpringSmoother_smooth(SpringSmoother sm, SparseMatrix A, int dim, double *x);
 /*------------------------------------------------------------------*/
 
 void post_process_smoothing(int dim, SparseMatrix A, spring_electrical_control ctrl, double *x, int *flag);