networks
cube
creates a hypercube
Calling Sequence
Parameters
Description
Examples
G:=cube(n)
G:=cube({1, 2, 3, 4})
n
-
positive integer
G
is returned as the nth hypercube.
Important: The networks package has been deprecated. Use the superseding command GraphTheory[SpecialGraphs][HypercubeGraph] instead.
If an integer n is given then the graph commonly known as 2 to the power n is generated.
The second calling sequence allows for specific names to be used for the vertices. For a definition, see hypercube.
with⁡networks:
G≔cube⁡1:
G≔cube⁡2:
G≔cube⁡3:
draw⁡Concentric⁡0,1,3,2,4,5,7,6,G
See Also
GraphTheory
GraphTheory[SpecialGraphs][HypercubeGraph]
networks(deprecated)[octahedron]
with
Download Help Document