Skip to contents

An Eulerian path traverses each edge of the graph precisely once. A closed Eulerian path is referred to as an Eulerian cycle.

Usage

is_eulerian(graph)

Arguments

graph

An igraph_ptr object.

Value

A logical value with two elements: "has a path" and "has a cycle".

Examples

is_eulerian(graph_tree(5L))
#> [1] FALSE FALSE

is_eulerian(graph_square_lattice(5L))
#> [1]  TRUE FALSE

is_eulerian(graph_ring(5L))
#> [1] TRUE TRUE