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