def test_size(self):
        for G, A in self.GA:
            n = G.order()
            s = len(list(G.edges())) + len(list(A.edges()))
            assert_true(s == (n*(1-n))/2)
dataset/ETHPy150Open networkx/networkx/networkx/algorithms/approximation/tests/test_kcomponents.py/TestAntiGraph.test_size/swapped operands of `-`