From bdb60407e44656145ab9ca7c945be4080f113524 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Fri, 29 Jul 2022 17:05:50 -0700 Subject: [PATCH] neatogen stress_majorization_cola: remove unused 'nedges_graph' parameter --- lib/neatogen/constrained_majorization_ipsep.c | 1 - lib/neatogen/digcola.h | 2 +- lib/neatogen/neatoinit.c | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/neatogen/constrained_majorization_ipsep.c b/lib/neatogen/constrained_majorization_ipsep.c index 34b1292e6..2de870c84 100644 --- a/lib/neatogen/constrained_majorization_ipsep.c +++ b/lib/neatogen/constrained_majorization_ipsep.c @@ -54,7 +54,6 @@ int stress_majorization_cola(vtx_data * graph, /* Input graph in sparse representation */ int n, /* Number of nodes */ - int nedges_graph, /* Number of edges */ double **d_coords, /* Coordinates of nodes (output layout) */ node_t ** nodes, /* Original nodes */ int dim, /* Dimemsionality of layout */ diff --git a/lib/neatogen/digcola.h b/lib/neatogen/digcola.h index cec6d2e83..42a3c7f46 100644 --- a/lib/neatogen/digcola.h +++ b/lib/neatogen/digcola.h @@ -40,7 +40,7 @@ typedef struct ipsep_options { } ipsep_options; /* stress majorization, for Constraint Layout */ -extern int stress_majorization_cola(vtx_data*, int, int, double**, node_t**, int, int, int, ipsep_options*); +extern int stress_majorization_cola(vtx_data*, int, double**, node_t**, int, int, int, ipsep_options*); #endif #endif diff --git a/lib/neatogen/neatoinit.c b/lib/neatogen/neatoinit.c index d23c41227..1bb2f95bc 100644 --- a/lib/neatogen/neatoinit.c +++ b/lib/neatogen/neatoinit.c @@ -1232,7 +1232,7 @@ majorization(graph_t *mg, graph_t * g, int nv, int mode, int model, int dim, adj fprintf (stderr, "\n"); dumpOpts (&opt, nv); #endif - rv = stress_majorization_cola(gp, nv, ne, coords, nodes, Ndim, model, MaxIter, &opt); + rv = stress_majorization_cola(gp, nv, coords, nodes, Ndim, model, MaxIter, &opt); freeClusterData(cs); free (nsize); } -- 2.40.0