refactoring, first step
This commit is contained in:
@@ -49,7 +49,7 @@ if (NULL==(fp=fopen(filename, "w"))) {
|
||||
return -4;
|
||||
}
|
||||
|
||||
print_bublist_desc(bblist, 0);
|
||||
// print_bublist_desc(bblist, 0);
|
||||
fwrite("VERTICES", 8, 1, fp);
|
||||
nbre = bblist->fidx;
|
||||
fwrite(&nbre, sizeof(int), 1, fp);
|
||||
@@ -61,7 +61,7 @@ for (idx=0; idx<bblist->fidx; idx++) {
|
||||
fwrite(coo, sizeof(coo), 1, fp);
|
||||
}
|
||||
|
||||
print_edgelist_desc(edges, 0);
|
||||
// print_edgelist_desc(edges, 0);
|
||||
fwrite("EDGES ", 8, 1, fp);
|
||||
nbre = edges->fidx;
|
||||
fwrite(&nbre, sizeof(int), 1, fp);
|
||||
@@ -121,6 +121,7 @@ if (NULL==blst) {
|
||||
abort();
|
||||
}
|
||||
if (verbosity > 1) print_bublist_desc(blst, 0);
|
||||
|
||||
/* load all that XYZ points */
|
||||
for (idx=0; idx<nbre; idx++) {
|
||||
if (3 != fread(coo, sizeof(double), 3, fp)) {
|
||||
@@ -151,6 +152,7 @@ if (1 != foo) {
|
||||
return -1;
|
||||
}
|
||||
fprintf(stderr, " %d edges to be loaded\n", nbre);
|
||||
|
||||
/* allocate memory for edges list */
|
||||
elst = alloc_edgelist("krkrkr", nbre, 0);
|
||||
if (NULL==elst) {
|
||||
|
||||
Reference in New Issue
Block a user