def get_graph_by_id(self, network_id: int) -> BELGraph:
        """Get a network from the database by its identifier and converts it to a BEL graph."""
        network = self.get_network_by_id(network_id)
        log.debug('converting network [id=%d] %s to bel graph', network_id, network)
        return network.as_bel()
def get_graph_by_id ( self , network_id : int ) -> BELGraph : network = self . get_network_by_id ( network_id ) log . debug ( 'converting network [id=%d] %s to bel graph' , network_id , network ) return network . as_bel ( )
Get a network from the database by its identifier and converts it to a BEL graph.