Main Content

Fundamental cycle basis of graph

computes the fundamental cycle
basis of an undirected graph. The output `cycles`

= cyclebasis(`G`

)`cycles`

is a cell array
that indicates which nodes belong to each fundamental cycle.

`[`

also returns the edges in each cycle. The output `cycles`

,`edgecycles`

] = cyclebasis(`G`

)`edgecycles`

is a cell
array where `edgecycles{k}`

gives the edges between the nodes in
`cycles{k}`

.