#NEWLINE# def test_find_cycle_on_very_deep_graph( self ) : #NEWLINE# #INDENT# gr = pygraph . classes . graph . graph ( ) #NEWLINE# gr . add_nodes ( range ( 0 , 20001 ) ) #NEWLINE# for i in range ( 0 , 20000 ) : #NEWLINE# #INDENT# gr . add_edge ( ( gr , ( i + 1 ) ) ) #NEWLINE# #UNINDENT# recursionlimit = getrecursionlimit ( ) #NEWLINE# find_cycle ( gr ) #NEWLINE# assert ( getrecursionlimit ( ) == recursionlimit )