Re: Cyclic graphs Lassi Kortela 11 Aug 2022 09:30 UTC

> What is the output of `tsort` in the case of cycles?

I don't know about tsort, but one possibility is to return two values:

- A list of the cycle-free nodes in sort order.

- A set of the nodes which are part of a cycle.