diff options
Diffstat (limited to 'graph-checker/nauty')
| -rw-r--r-- | graph-checker/nauty/geng-iter.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/graph-checker/nauty/geng-iter.c b/graph-checker/nauty/geng-iter.c index e812f49..4a3ddd9 100644 --- a/graph-checker/nauty/geng-iter.c +++ b/graph-checker/nauty/geng-iter.c @@ -11,7 +11,7 @@ #pragma GCC diagnostic ignored "-Wdeprecated-declarations" void -printgraph(graph *g, int n) +fill_matrix(graph *g, int n, int **mat) { set *gi; for (int i = 0; i < n; ++i) @@ -20,11 +20,9 @@ printgraph(graph *g, int n) for (int j = 0; j < n; ++j) { int q = ISELEMENT(gi, j); - printf("%i ", q); + mat[i][j] = q; } - printf("\n"); } - printf("\n"); } // TODO: probably don't need to name this function with macro |