def simple_node_iter(nodes):
    if isinstance(nodes, basestring):
        nodes = (nodes,)

    allnodes = []
    for node in nodes:
        if isinstance(node, basestring):
            allnodes.append(node)
        else:
            allnodes.extend(simple_node_iter(node))
    return allnodes
Return individual nodes from an iterator containing nodes and
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/depgraph.py/simple_node_iter