diff options
Diffstat (limited to 'graph.c')
-rw-r--r-- | graph.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -43,7 +43,8 @@ graph load_graph_dimacs(FILE *stream) { fprintf(stderr, "File format error (expected 'p' declaration)\n"); return NULL; } - fscanf(stream, " col %d %d\n", &n, &m); // read node count + fscanf(stream, " col"); fscanf(stream, " edge"); // either col or edge + fscanf(stream, " %d %d\n", &n, &m); // read node count fprintf(stderr, "Load DIMACS: n = %d, m = %d\n", n, m); graph k = malloc(sizeof(struct graph_descriptor)); |