Traverse.G
Minimal graph signature for Dfs
and Bfs
. Sub-signature of Sig.G
.
module V : Sig.COMPARABLE
It is enough to iter over all the roots (vertices without predecessor) of the graph, even if iterating over the other vertices is correct.
It is enough to fold over all the roots (vertices without predecessor) of the graph, even if folding over the other vertices is correct.