Suggest that topological-sort signal a meaningful condition.
psilord opened this issue · 4 comments
psilord commented
Could you add a meaningful and real condition for when the topological-sort fails when it detects a cycle such that it tells me the cycle it found in the condition?
Currently, I have to check for the ERROR condition and that contains all kinds of other things that could have happened during execution and is much larger of a domain that just a cycle.
Thank you!
sjl commented
Done, documentation here: https://docs.stevelosh.com/cl-digraph/usage/#conditions
psilord commented
Looks great thank you!
mfiano commented
I believe the documentation might be wrong. The name of the condition is digraph:topological-sort-cycle
not digraph:topological-sort-cycle-error
.