Warning

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

hypercube_graph

hypercube_graph(n)[source]

Return the n-dimensional hypercube.

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