frag.cycles function

Count the k-cycles in a graph, for cycles =< k