WLJS LogoWLJS Notebook

HypercubeGraph

HypercubeGraph[n] gives the n-dimensional hypercube graph Qₙ.

Examples

3D hypercube (cube):

HypercubeGraph[3]

4D hypercube (tesseract):

HypercubeGraph[4]

Count vertices and edges:

g = HypercubeGraph[5];
{VertexCount[g], EdgeCount[g]}
(* {32, 80} *)

Please visit the official Wolfram Language Reference for more details.

On this page