diff options
Diffstat (limited to 'src/03/matrix.c')
| -rw-r--r-- | src/03/matrix.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/03/matrix.c b/src/03/matrix.c index 1e4d310..5cdcc45 100644 --- a/src/03/matrix.c +++ b/src/03/matrix.c @@ -9,6 +9,11 @@ char labels[26] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', * Traverses a graph represented as an adjacency matrix * to visit every vertex in the graph and traverse each * edge in both directions only once. + * + * @param n The # of vertexes in the graph + * @param graph An adjacency matrix that represents the graph + * @param visited An array that keeps track of which vertexes have been visited + * @param vertex The current vertex to traverse. */ void matrix_traverse(int n, int graph[n][n], int visited[n], int vertex) { printf("->(%c)", labels[vertex]); |
