return 1;
}
-void dump_coordinates(char *name, int n, int dim, real *x){
- char fn[1000];
- FILE *fp;
- int i, k;
-
- if (!name){
- name = "";
- } else {
- name = strip_dir(name);
- }
-
- strcpy(fn, name);
- strcat(fn,".x");
- fp = fopen(fn,"w");
- fprintf(fp, "%d %d\n",n, dim);
- for (i = 0; i < n; i++){
- for (k = 0; k < dim; k++){
- fprintf(fp,"%f ",x[i*dim+k]);
- }
- fprintf(fp,"\n");
- }
- fclose(fp);
-
-}
-
static int hex2int(char h){
if (h >= '0' && h <= '9') return h - '0';
if (h >= 'a' && h <= 'f') return 10 + h - 'a';
extern SparseMatrix SparseMatrix_import_dot(Agraph_t* g, int dim, real **label_sizes, real **x, int *n_edge_label_nodes,
int **edge_label_nodes, int format, SparseMatrix *D);
-void dump_coordinates(char *name, int n, int dim, real *x);
char * hue2rgb(real hue, char *color);
SparseMatrix Import_coord_clusters_from_dot(Agraph_t* g, int maxcluster, int dim, int *nn, real **label_sizes, real **x, int **clusters, float **rgb_r, float **rgb_g, float **rgb_b, float **fsz, char ***labels, int default_color_scheme, int clustering_scheme, int useClusters);