#include <string.h>
#include <vector>
-#if OPENGL
-#include <gl.h>
-extern pedge *edges_global;
-extern int nedges_global;
-#endif
-
enum {DEBUG=0};
static Agglomerative_Ink_Bundling Agglomerative_Ink_Bundling_init(SparseMatrix A, pedge *edges, int level){
#define SMALL 1.e-10
-#ifdef OPENGL
-#include <gl.h>
-extern pedge *edges_global;
-extern int *clusters_global;
-#endif
-
static double norm(int n, double *x){
double res = 0;
int i;
modularity_clustering(BB, TRUE, 0, use_value_for_clustering, &nclusters, &assignment, &modularity, &flag);
SparseMatrix_delete(BB);
-#ifdef OPENGL
- clusters_global = assignment;
-#endif
-
assert(!flag);
if (Verbose > 1) fprintf(stderr, "there are %d clusters, modularity = %f\n",nclusters, modularity);
e->x[3*dim+1] = e->x[4*dim+1];
e->npoints = 4;
}
-#ifdef OPENGL
- edges_global = edges;
- drawScene();
-#endif
}
}
SparseMatrix_delete(D);