recursion
I wonder why u require this Infinite loop concept if so how to get out if a graph runs recursively..