NetworkX

Previous topic

networkx.grid_graph

Next topic

networkx.ladder_graph

networkx.hypercube_graph

hypercube_graph(n, create_using=None)

Return the n-dimensional hypercube.

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