'Approximate current-flow betweenness centrality: K4'

def test_K4(self):

    G = nx.complete_graph(4)
    b = nx.current_flow_betweenness_centrality(G, normalized=False)
    epsilon = 0.1
    ba = approximate_cfbc(G, normalized=False, epsilon=(0.5 * epsilon))
    for n in sorted(G):
        assert_allclose(b[n], ba[n], atol=(epsilon * (len(G) ** 2)))
