'Edge betweenness centrality: P4'

def test_P4(self):

    G = nx.path_graph(4)
    b = edge_current_flow(G, normalized=False)
    b_answer = {(0, 1): 1.5, (1, 2): 2.0, (2, 3): 1.5}
    for ((s, t), v1) in b_answer.items():
        v2 = b.get((s, t), b.get((t, s)))
        assert_almost_equal(v1, v2)
