From d7a7bb79053acec1e6d50ffae89f374447974890 Mon Sep 17 00:00:00 2001 From: mo khan Date: Sun, 27 Sep 2020 13:17:17 -0600 Subject: docs: Document input parameters for matrix_traverse function --- src/03/matrix.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/03') 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]); -- cgit v1.2.3