'Betweenness centrality: K5 endpoints'

def test_K5_endpoints(self):

    G = nx.complete_graph(5)
    b = nx.betweenness_centrality(G, weight=None, normalized=False, endpoints=True)
    b_answer = {0: 4.0, 1: 4.0, 2: 4.0, 3: 4.0, 4: 4.0}
    for n in sorted(G):
        assert_almost_equal(b[n], b_answer[n])
