def degree(self, name):
        deg = super(DGraphBase, self).degree(name)
        if isinstance(deg, dict):
            return len(deg)
        return deg
The nx.DiGraph version returns an empty dict when it should
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.main/src/openmdao/main/depgraph.py/DGraphBase.degree