'Weighted betweenness centrality: G'

def test_G(self):

    G = weighted_G()
    b_answer = {0: 2.0, 1: 0.0, 2: 4.0, 3: 3.0, 4: 4.0, 5: 0.0}
    b = nx.betweenness_centrality(G, weight='weight', normalized=False)
    for n in sorted(G):
        assert_almost_equal(b[n], b_answer[n])
