NetworkX

Previous topic

barbell_graph

Next topic

complete_bipartite_graph

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.