plots,graphplot3d - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


plots

  

graphplot3d

  

plot an undirected graph in 3-D

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

graphplot3d(G, eigenopts, opts)

Parameters

G

-

real symmetric Matrix

eigenopts

-

(optional) specifies vertex numbers

opts

-

equations of form option=value

Description

• 

Important: The plots[graphplot3d] command has been deprecated. Use the superseding command GraphTheory[DrawGraph] instead.

• 

This routine draws an undirected graph G=V,E in three dimensions in such a way that structure and symmetry in the graph is revealed.  The graph G is input as an adjacency matrix, that is, a real symmetric matrix. The output is a three-dimensional plot of labeled points and lines connecting them.  The points correspond to the vertices in the graph and the lines correspond to the edges in the graph, that is, there will be a line connecting point i with point j when Gi,j is nonzero.

• 

The location of the vertices of the graph is determined as follows. Let u, v, and w be three eigenvectors of G with corresponding second, third, and fourth largest eigenvalue in absolute value.  Then the (x,y,z) co-ordinates of the ith vertex of G is (ui,vi,wi).

• 

Sometimes other symmetries in the graph may be seen by using the other eigenvectors. If the optional argument eigenvectors=e1,e2,e3 is specified, where e1, e2, e3 are vertex numbers (integers from 1 through the number of vertices) then the eigenvectors corresponding to the eigenvalues of these relative magnitudes are used.

• 

Remaining arguments are interpreted as options which are specified as equations of the form option = value. The remaining options are the same as those available for the plot3d command. See plot3d[option] for further information.

Examples

Important: The plots[graphplot3d] command has been deprecated. Use the superseding command GraphTheory[DrawGraph] instead.

withplots:

cubeMatrix8,8,shape=symmetric:

cube1,21:cube2,31:cube3,41:cube1,41:

cube5,61:cube6,71:cube7,81:cube5,81:

cube1,51:cube2,61:cube3,71:cube4,81:

graphplot3dcube

cpfactorLinearAlgebra:-CharacteristicPolynomialcube,x

cpx3x+3x13x+13

(1)

graphplot3dcube,eigenvectors=1,3,8

withnetworks:

Gdodecahedron:

AadjacencyG

graphplot3dA,title=A dodecahedron

See Also

GraphTheory[DrawGraph]

networks

networks[draw3d]

plot3d[option]