FindCycle

As of Version 10, most of the functionality of the Combinatorica package is built into the Wolfram System. >>

FindCycle[g]
finds a list of vertices that define a cycle in graph g.

DetailsDetails