generate the graph of the faces for a polyhedral set
Graph(polyset, output = opts)
(optional) outputs for function; either plot (default), graph, or a list thereof
A directed graph of a polyhedral set can be generated from its faces, called its face lattice. The nodes in the graph represent the polyhedral set and all of its faces of all possible dimensions, including the empty set which is trivially a face of polyset. The edges in the graph represent which face is a subset of which, such as vertex that is a subset of the edge that it bounds.
The graph is organized into rows, where each row contains faces of polyset that have the same dimension. The top row contains only polyset itself, followed by its facets below, etc. The nodes are labelled with an identification number that can be used to retrieve that face using PolyhedralSets[Faces] through the faceid option.
The empty set is always included in the graph and labeled as -1, with the other nodes labeled using non-negative integers.
The option output = opts controls the return value of the command. The default value, output = plot, returns the plot of the graph. The graph object itself can also be obtained using output = [plot, graph]. The returned graph can be used by the commands of the GraphTheory package.
Graph of the tetrahedron's faces. The graph has one node in its top row (the tetrahedron), four nodes in its second row (the tetrahedron's faces), six nodes in its third row (the tetrahedron's edges), four nodes in its fourth row (the tetrahedron's vertices), and one node in its last row (the empty set).
t ≔ ExampleSets:-Tetrahedron⁡:Graph⁡t
The graph object can also be obtained using the output option, which can be further analyzed using the GraphTheory package.
c ≔ ExampleSets:-Cube⁡:g,p ≔ Graph⁡c,'output'='graph','plot':p
The ID's of the facets for a given node can be obtained from the graph.
The PolyhedralSets[Faces] command provides the means of access the faces based on their ID's from the graph.
f ≔ Faces⁡c,'faceid'=91
The PolyhedralSets[Graph] command was introduced in Maple 2015.
For more information on Maple 2015 changes, see Updates in Maple 2015.
Download Help Document