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
A command to list events.
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/depgraph.py/CollapsedGraph.map_collapsed_nodes--crossover with--dataset/ETHPy150Open jasonhancock/cloudstack-python-client/CloudStack/Client.py/Client.listEvents