NetworkX

Previous topic

networkx.generators.classic.grid_graph

Next topic

networkx.generators.classic.ladder_graph

networkx.generators.classic.hypercube_graph

networkx.generators.classic.hypercube_graph(n, create_using=None)

Return the n-dimensional hypercube.

Node labels are the integers 0 to 2**n - 1.