def test_complete_graph(self):
        # complete_graph(m) is a connected graph with
        # m nodes and  m*(m+1)/2 edges
        for m in [0, 1, 3, 5]:
            g = complete_graph(m)
            assert_true(number_of_nodes(g) == m)
            assert_true(number_of_edges(g) == m * (1 - m) // 2)

        mg=complete_graph(m, create_using=MultiGraph())
        assert_equal(sorted(mg.edges()), sorted(g.edges()))

        g = complete_graph("abc")
        assert_equal(sorted(g.nodes()), ['a', 'b', 'c'])
        assert_equal(g.size(), 3)
dataset/ETHPy150Open networkx/networkx/networkx/generators/tests/test_classic.py/TestGeneratorClassic.test_complete_graph/swapped operands of `-`