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:
I tried using, for example, the HypercubeGraph function:
HypercubeGraph[8]
which generates
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?
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]
Answered by Vitaliy Kaurov on February 3, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP