method to preprocess all nodes for assigning time
def preProcess ( edges : list , V : int , timeIn : list , timeOut : list ) : NEW_LINE INDENT global cnt NEW_LINE g = [ [ ] for i in range ( V ) ] NEW_LINE DEDENT