Warning

This documents an unmaintained version of NetworkX. Please upgrade to a maintained version and see the current NetworkX documentation.

complete_graph

complete_graph(n, create_using=None)[source]

Return the complete graph K_n with n nodes.

Node labels are the integers 0 to n-1.