Function to traverse the nodes using the Depth - First Search Traversal
def dfs_lca ( a , par , lev ) : NEW_LINE INDENT dp [ 0 ] [ a ] = par ; NEW_LINE level [ a ] = lev ; NEW_LINE for i in v [ a ] : NEW_LINE DEDENT