def _identity_nodes(graph, include_iterables):
 return [node for node in nx.topological_sort(graph) if (isinstance(node._interface, IdentityInterface) and (include_iterables or (getattr(node, u'iterables') is None)))]

def _identity_nodes ( graph , include_iterables ) : return [ node for node in nx . topological_sort ( graph ) if ( isinstance ( node . _interface , IdentityInterface ) and ( include_iterables or ( getattr ( node , u'iterables' ) is None ) ) ) ]
return the identityinterface nodes in the graph the nodes are in topological sort order .