networks(deprecated)/cube - Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : networks(deprecated)/cube

networks[cube] - creates a hypercube

Calling Sequence

G:=cube(n)

G:=cube({1, 2, 3, 4})

Parameters

n

-

positive integer

G

-

is returned as the nth hypercube.

Description

• 

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 .

Examples

Important: The networks package has been deprecated.  Use the superseding command GraphTheory[SpecialGraphs][HypercubeGraph] instead.

withnetworks:

G:=cube1:

G:=cube2:

G:=cube3:

drawConcentric0,1,3,2,4,5,7,6,G

See Also

GraphTheory, GraphTheory[SpecialGraphs][HypercubeGraph], networks(deprecated)[octahedron], with


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam