'Closeness centrality: K4'

def test_K4(self):

    G = nx.complete_graph(4)
    b = nx.current_flow_closeness_centrality(G)
    b_answer = {0: (2.0 / 3), 1: (2.0 / 3), 2: (2.0 / 3), 3: (2.0 / 3)}
    for n in sorted(G):
        assert_almost_equal(b[n], b_answer[n])
