powered by
Iterative depth first search.
DFS(Adj, v, discovered)
Logical of length n where TRUE denotes connected to node v.
v
Adjacency matrix.
Node to perform DFS from.
A list of discovered nodes from v. If initializing the search, should be all FALSE.
Andrew Kramer
Alexander Mercier
Intended as internal function.