Is your feature request related to a problem? Please describe.
I think the current implementation of the cycles detection is not optimal. We should avoid finding all cycles and look only for unique.
Describe the solution you would like
Store only cycles where the first vertex has the smallest ID.
Component
Additional context
Are you planning on creating a PR?