Module Traverse.Mark
Graph traversal with marking. Only applies to imperative graphs with marks.
Parameters
Signature
val dfs : G.t -> unitdfs gtraversesgin depth-first search, marking all nodes.
val has_cycle : G.t -> boolhas_cycle gchecks for a cycle ing. Modifies the marks. Linear time, constant space.