For finding bridges
timer = 0 NEW_LINE diameter = 0 NEW_LINE def swap ( x , y ) : NEW_LINE INDENT temp = x NEW_LINE x = y NEW_LINE y = temp NEW_LINE DEDENT def find_set ( a ) : NEW_LINE INDENT global N , v , g , vis , In , low , parent , rnk , bridges , n , m , timer , diameter NEW_LINE DEDENT