multilevel_spring_electrical_embedding(Ndim, A, D, ctrl, sizes, pos, n_edge_label_nodes, edge_label_nodes, &flag);
break;
case METHOD_UNIFORM_STRESS:
- uniform_stress(Ndim, A, pos, &flag);
+ uniform_stress(Ndim, A, pos);
break;
case METHOD_STRESS:{
int maxit = 200;
extern void scale_to_box(double xmin, double ymin, double xmax, double ymax, int n, int dim, double *x);
-void uniform_stress(int dim, SparseMatrix A, double *x, int *flag){
+void uniform_stress(int dim, SparseMatrix A, double *x) {
UniformStressSmoother sm;
double lambda0 = 10.1, M = 100, scaling = 1.;
int maxit = 300, samepoint = TRUE, i, k, n = A->m;
SparseMatrix B = NULL;
- *flag = 0;
-
/* just set random initial for now */
for (i = 0; i < dim*n; i++) {
x[i] = M*drand();
void UniformStressSmoother_delete(UniformStressSmoother sm);
-void uniform_stress(int dim, SparseMatrix A, double *x, int *flag);
+void uniform_stress(int dim, SparseMatrix A, double *x);