views:

60

answers:

0

Possible Duplicate:
Best algorithm for detecting cycles in a directed graph

Hi Could sb tell which algoritym I should use to find a loop/cycle in graph or tree ? Maybe sb has a pseudocode or sth I could start with.