def list_inputs(self, cname, connected=None):
        if cname in self:
            if connected:
                return [n for n in self.pred[cname] if self.in_degree(n)]
            elif connected is False:
                return [n for n in self.pred[cname]
                                                if self.in_degree(n)==0]
            else:
                return self.pred[cname].keys()
        else:
            return []
Return a list of names of input nodes to a component.
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/depgraph.py/DependencyGraph.list_inputs