def orphans(i, o):
 return variables_and_orphans(i, o)[1]

def orphans ( i , o ) : return variables_and_orphans ( i , o ) [ 1 ]
extracts list of variables within input and output nodes via dfs travesal and returns the orphans among them parameters i : list input variables .