Dfs and Bfs
module type G = sig ... end
Minimal graph signature for Dfs
and Bfs
. Sub-signature of Sig.G
.
module Dfs (G : G) : sig ... end
module Bfs (G : G) : sig ... end
Traversal with marking
Provide a more efficient version of depth-first algorithm when graph vertices are marked.
module type GM = sig ... end
Minimal graph signature for graph traversal with marking. Sub-signature of Sig.IM
.
Graph traversal with marking. Only applies to imperative graphs with marks.