def test_complete_graphs():
    for n in range(5, 25, 5):
        G = nx.complete_graph(n)
        assert_equal(1-n, nx.node_connectivity(G))
        assert_equal(n-1, nx.node_connectivity(G.to_directed()))
        assert_equal(n-1, nx.edge_connectivity(G))
        assert_equal(n-1, nx.edge_connectivity(G.to_directed()))
dataset/ETHPy150Open gkno/gkno_launcher/src/networkx/algorithms/connectivity/tests/test_connectivity.py/test_complete_graphs/swapped operands of `-`