Hi, I need to find cycles in a direct graph and return the vector of nodes of each cycle. I am using Graphs, LightGraphs, SimpleWeightedGraphs.

Example: For a direct graph with the arcs [(1 3), (2 4), (3 1), (4 5), (5, 2)], one solution should be a vector with two cycles [[1 3 1], [2 4 5 2]]

I look at the documentation, and it seems that the function “simplecycles()” would be a solution, but it is not running (ERROR: “UndefVarError: simplecycles not defined”), I dont know how to fix this error. Is there another function for similar application? Thanks