Bfs.1-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.