How can I find (iterate over) ALL the cycles in a directed graph from/to a given node?

For example, I want something like this:

A->B->A
A->B->C->A

but not:
B->C->B

17 Answers
17

Leave a Reply

Your email address will not be published. Required fields are marked *