Moritz Heidkamp <mor...@twoticketsplease.de> writes:
> One thing I'm not sure about is how I raise the condition in case a
> cycle is detected. Comments on that are very welcome!

Right, forgot to include an example:

  #;1> (topological-sort '((a b) (b c) (c a)) eq?)

  Error: (topological-sort) cycle detected: (a b c a)

As you can see it includes a hint about the cyclic path. Only the first
cycle detected is reported currently.

Moritz

_______________________________________________
Chicken-hackers mailing list
Chicken-hackers@nongnu.org
https://lists.nongnu.org/mailman/listinfo/chicken-hackers

Reply via email to