def _connect_subvars_to_comps(self):
        self._add_boundary_comps()

        for node, data in self.nodes_iter(data=True):
            if 'comp' in data:
                comp = node
                for base_in in self.predecessors(node):
                    for sub_in in self.predecessors(base_in):
                        if self.node[sub_in].get('basevar') == base_in:
                            self.add_edge(sub_in, comp)
                            self.remove_edge(sub_in, base_in)

                for base_out in self.successors(node):
                    for sub_out in self.successors(base_out):
                        if self.node[sub_out].get('basevar') == base_out:
                            self.add_edge(comp, sub_out)
                            self.remove_edge(base_out, sub_out)
                            #for subsucc in self.successors(sub_out):
                            #    sub_comp = subsucc.split('.', 1)[0]
                            #    if sub_comp in self and not self.has_edge(base_out, sub_comp):
                            #        self.add_edge(base_out, sub_comp, nodata=True)

        # get rid of fake boundary comps
        self.remove_nodes_from(['#in', '#out'])
it.__delitem__(index) <==> del it[index]
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/depgraph.py/DependencyGraph._connect_subvars_to_comps--crossover with--dataset/ETHPy150Open CountZer0/PipelineConstructionSet/python/maya/site-packages/pymel-1.0.5/extras/completion/py/pymel/util/arrays.py/ArrayIter.__delitem__