def METHOD_NAME(self):
    G = self.G.copy()
    nx.set_edge_attributes(G, 1, "weight")
    effective_size = nx.effective_size(G, weight="weight")
    assert effective_size["G"] == pytest.approx(4.67, abs=1e-2)
    assert effective_size["A"] == pytest.approx(2.50, abs=1e-2)
    assert effective_size["C"] == pytest.approx(1, abs=1e-2)