[Lemon-user] Removing redundant paths in digraph?

Alpár Jüttner alpar at cs.elte.hu
Tue Jan 25 05:44:27 CET 2011


Hi,

> > What about using a topological ordering instead of a BFS traversal? As
> > far as I see, it would solve your problem. Do you need this arc removal
> > procedure at all? Don't you need just a topological sort?
> > http://en.wikipedia.org/wiki/Topological_sorting
> >
> 
> Yes, I think that would do it, with no need for arc removal.  I don't see any mention of that algorithm in Lemon, am I 
> missing it, or is there just not one?  Doesn't seem terribly difficult to implement, so that's not a show-stopper.

LEMON does have topological sort algorithm:

http://lemon.cs.elte.hu/pub/doc/1.2.1/a00538.html#ga67cdef21788938be90604624f5af8569

Alpar




More information about the Lemon-user mailing list