summaryrefslogtreecommitdiff
path: root/src/03/matrix_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/03/matrix_test.c')
-rw-r--r--src/03/matrix_test.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/03/matrix_test.c b/src/03/matrix_test.c
index 9397070..6d741e8 100644
--- a/src/03/matrix_test.c
+++ b/src/03/matrix_test.c
@@ -6,22 +6,22 @@ Ensure(every_edge_is_traversed_in_both_directions_at_least_once) {
int n = 16;
int visited[16] = {0};
int graph[16][16] = {
- {0,1,0,0,1,1,0,0,0,0,0,0,0,0,0,0},
- {1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0},
- {0,1,0,1,0,1,0,0,0,0,0,0,0,0,0,0},
- {0,0,1,0,0,0,1,0,0,0,0,0,0,0,0,0},
- {1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0},
- {1,0,1,0,0,0,0,0,0,1,0,0,0,0,0,0},
- {0,0,0,1,0,0,0,1,0,1,1,0,0,0,0,0},
- {0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0},
- {0,0,0,0,1,0,0,0,0,1,0,0,1,1,0,0},
- {0,0,0,0,0,1,1,0,1,0,0,0,0,0,0,0},
- {0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0},
- {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1},
- {0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0},
- {0,0,0,0,0,0,0,0,1,0,0,0,0,0,1,0},
- {0,0,0,0,0,0,0,0,0,0,1,0,0,1,0,1},
- {0,0,0,0,0,0,0,0,0,0,0,1,0,0,1,0},
+ {0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
+ {1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
+ {0, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
+ {0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 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