def variables(i, o):
 return variables_and_orphans(i, o)[0]

def variables ( i , o ) : return variables_and_orphans ( i , o ) [ 0 ]
extracts list of variables within input and output nodes via dfs travesal parameters i : list input variables .