'Approximate current-flow betweenness centrality: solvers'

def test_solvers(self):

    G = nx.complete_graph(4)
    epsilon = 0.1
    for solver in ['full', 'lu', 'cg']:
        b = approximate_cfbc(G, normalized=False, solver=solver, epsilon=(0.5 * epsilon))
        b_answer = {0: 0.75, 1: 0.75, 2: 0.75, 3: 0.75}
        for n in sorted(G):
            assert_allclose(b[n], b_answer[n], atol=epsilon)
