Compute the edge reduction. Costly computation

def compute_edge_reduction(self) -> float:
        """Compute the edge reduction. Costly computation"""
        nb_init_edge = self.init_edge_number()
        nb_poweredge = self.edge_number()
        return (nb_init_edge - nb_poweredge) / (nb_init_edge)