def map_collapsed_nodes(self):
        name2collapsed = {}
        for node in self.nodes_iter():
            if isinstance(node, basestring):
                name2collapsed[node] = node
            else:
                name2collapsed[node[0]] = node
                for n in node[1]:
                    name2collapsed[n] = node

        self._name2collapsed = name2collapsed

        return name2collapsed
Return a dict of simple names to their collapsed node.
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/depgraph.py/CollapsedGraph.map_collapsed_nodes