GraphTheory[SpecialGraphs][HypercubeGraph]
|
Calling Sequence
|
|
HypercubeGraph(n)
|
|
Description
|
|
•
|
The HypercubeGraph(n) command creates the hypercube graph of dimension n on vertices. The vertex labels are strings of binary vectors of length n, and two vertices are joined by an edge if and only if they differ in exactly one coordinate. Note, the hypercube graph for n=2 is a square and for n=3 it is a cube.
|
|
|
Examples
|
|
>
|
|
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
>
|
|
Hypercube graphs have Hamiltonian cycles.
>
|
|
| (4) |
>
|
|
| (5) |
>
|
|
>
|
|
|
|
Download Help Document
Was this information helpful?