Possible Duplicate:
transitive reduction algorithm: pseudocode?
I have a directed graph with edge weights and am looking for a way to get the transitive reduction of it. Also this graph could have cycles so it needs to be able to handle that. I'm gunna eventually write this in ruby but any langauge will do!
Any ideas?
Thanks.