Module CCGraph.Traverse.Event

More detailed interface

type edge_kind = [
| `Forward
| `Back
| `Cross
]
type ('v, 'e) t = [
| `Enter of 'v * int * ('v'epath
| `Exit of 'v
| `Edge of 'v * 'e * 'v * edge_kind
]

A traversal is a sequence of such events

val get_vertex : ('v'et ‑> ('v * [ `Enter | `Exit ]) option
val get_enter : ('v'et ‑> 'v option
val get_exit : ('v'et ‑> 'v option
val get_edge : ('v'et ‑> ('v * 'e * 'v) option
val get_edge_kind : ('v'et ‑> ('v * 'e * 'v * edge_kind) option
val dfs : tbl:'v set ‑> eq:('v ‑> 'v ‑> bool) ‑> graph:('v'egraph ‑> 'v sequence ‑> ('v'et sequence_once

Full version of DFS.

val dfs_tag : eq:('v ‑> 'v ‑> bool) ‑> tags:'v tag_set ‑> graph:('v'egraph ‑> 'v sequence ‑> ('v'et sequence_once

Full version of DFS using integer tags.