Module Digraph.Eulerian

Eulerian path

val path : t -> E.t list * bool

path g returns an Eulerian path of g. The Boolean indicates whether the path is a cycle. Raises Invalid_argument if there is no Eulerian path.

val cycle : t -> E.t list