'Approximate current-flow betweenness centrality: star'

def test_star(self):

    G = nx.Graph()
    nx.add_star(G, ['a', 'b', 'c', 'd'])
    b = nx.current_flow_betweenness_centrality(G, normalized=True)
    epsilon = 0.1
    ba = approximate_cfbc(G, normalized=True, epsilon=(0.5 * epsilon))
    for n in sorted(G):
        assert_allclose(b[n], ba[n], atol=epsilon)
