TransWikia.com

Petrie polygon projection of a hypercube graph

Mathematica Asked by user76284 on February 3, 2021

I am trying to generate the Petrie polygon projection of the 8-cube in Mathematica, like this one:

enter image description here

I tried using, for example, the HypercubeGraph function:

HypercubeGraph[8]

which generates

enter image description here

As you can tell from the lack of symmetry (notice the shape of the innermost ring, for example), this is not the right projection. I also tried looking at some GraphPlot options like Method:

GraphPlot[HypercubeGraph[8], Method -> "SpringElectricalEmbedding"]

but to no avail. How can I generate the Petrie polygon projection of an 8-cube in Mathematica?

One Answer

As I understand this, GraphData are based on many nice custom pre-set layouts. Graph is based on algorithms that compute layouts, so computation is not always guaranteed to result in a specially defined geometry.

SetProperty[GraphData[{"Hypercube", 8}], VertexStyle -> Red]

enter image description here

Answered by Vitaliy Kaurov on February 3, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP