This function has no path in which it sets this output parameter to non-zero.
SparseMatrix D;
D = SparseMatrix_get_real_adjacency_matrix_symmetrized(graph);
remove_overlap(dim, D, x, width, 1000, 5000.,
- ELSCHEME_NONE, 0, NULL, NULL, TRUE, &flag);
+ ELSCHEME_NONE, 0, NULL, NULL, TRUE);
nart = nart0;
nrandom = nr0;
real *sizes;
real *pos = N_NEW(Ndim * agnnodes(g), real);
Agnode_t *n;
- int flag, i;
+ int flag = 0, i;
expand_t sep = sepFactor(g);
pointf pad;
}
remove_overlap(Ndim, A, pos, sizes, am->value, am->scaling,
- ELSCHEME_NONE, 0, NULL, NULL, mapBool (agget(g, "overlap_shrink"), TRUE), &flag);
+ ELSCHEME_NONE, 0, NULL, NULL, mapBool (agget(g, "overlap_shrink"), TRUE));
for (n = agfstnode(g); n; n = agnxtnode(g, n)) {
real *npos = pos + (Ndim * ND_id(n));
}
void remove_overlap(int dim, SparseMatrix A, real *x, real *label_sizes, int ntry, real initial_scaling,
- int edge_labeling_scheme, int n_constr_nodes, int *constr_nodes, SparseMatrix A_constr, int do_shrinking, int *flag){
+ int edge_labeling_scheme, int n_constr_nodes, int *constr_nodes, SparseMatrix A_constr, int do_shrinking){
/*
edge_labeling_scheme: if ELSCHEME_NONE, n_constr_nodes/constr_nodes/A_constr are not used
if (!ntry) return;
- *flag = 0;
-
#ifdef DEBUG
_statistics[0] = _statistics[1] = 0.;
{FILE*fp;
if (has_penalty_terms){
/* now do without penalty */
remove_overlap(dim, A, x, label_sizes, ntry, 0.,
- ELSCHEME_NONE, 0, NULL, NULL, do_shrinking, flag);
+ ELSCHEME_NONE, 0, NULL, NULL, do_shrinking);
}
#ifdef DEBUG
#include <common/types.h>
#include <sparse/SparseMatrix.h>
void remove_overlap(int dim, SparseMatrix A, real *x, real *label_sizes, int ntry, real initial_scaling,
- int edge_labeling_scheme, int n_constr_nodes, int *constr_nodes, SparseMatrix A_constr, int do_shrinking, int *flag)
+ int edge_labeling_scheme, int n_constr_nodes, int *constr_nodes, SparseMatrix A_constr, int do_shrinking)
{
static int once;
(void)constr_nodes;
(void)A_constr;
(void)do_shrinking;
- (void)flag;
if (once == 0) {
once = 1;
real OverlapSmoother_smooth(OverlapSmoother sm, int dim, real *x);
void remove_overlap(int dim, SparseMatrix A, real *x, real *label_sizes, int ntry, real initial_scaling,
- int edge_labeling_scheme, int n_constr_nodes, int *constr_nodes, SparseMatrix A_constr, int doShrink, int *flag);
+ int edge_labeling_scheme, int n_constr_nodes, int *constr_nodes, SparseMatrix A_constr, int doShrink);
real overlap_scaling(int dim, int m, real *x, real *width, real scale_sta, real scale_sto, real epsilon, int maxiter);
assert(!(*flag));
attach_edge_label_coordinates(dim, A, n_edge_label_nodes, edge_label_nodes, x, x2);
remove_overlap(dim, A, x, label_sizes, ctrl->overlap, ctrl->initial_scaling,
- ctrl->edge_labeling_scheme, n_edge_label_nodes, edge_label_nodes, A, ctrl->do_shrinking, flag);
+ ctrl->edge_labeling_scheme, n_edge_label_nodes, edge_label_nodes, A, ctrl->do_shrinking);
SparseMatrix_delete(A2);
FREE(x2);
if (A != A0) SparseMatrix_delete(A);
remove_overlap(dim, A, x, label_sizes, ctrl->overlap, ctrl->initial_scaling,
- ctrl->edge_labeling_scheme, n_edge_label_nodes, edge_label_nodes, A, ctrl->do_shrinking, flag);
+ ctrl->edge_labeling_scheme, n_edge_label_nodes, edge_label_nodes, A, ctrl->do_shrinking);
RETURN:
*ctrl = ctrl0;