src/pybel/struct/graph.py
def parent(self) -> BELGraph:
        """Get the parent BEL graph."""
        if not self.graph.parent:
            raise RuntimeError('Can not use expand dispatch on graph without a parent')
        return self.graph.parent
Get the parent BEL graph.
Get the parent BEL graph.
Get the parent BEL graph .
def parent(self) -> BELGraph:
        if not self.graph.parent:
            raise RuntimeError('Can not use expand dispatch on graph without a parent')
        return self.graph.parent
def parent ( self ) -> BELGraph : if not self . graph . parent : raise RuntimeError ( 'Can not use expand dispatch on graph without a parent' ) return self . graph . parent
Get the parent BEL graph.
Get the parent BEL graph .
"""Get the parent BEL graph."""
self