@@ -1180,6 +1180,13 @@ def CubeGraph(n, embedding=1):
1180
1180
vertices in each column represents rows in Pascal's triangle. See for
1181
1181
instance the :wikipedia:`10-cube` for more details.
1182
1182
1183
+ - ``3``: oblique projection of the `n`-cube. Oblique projection involves
1184
+ aligning one face parallel to the viewer and projecting at a specified
1185
+ angle, maintaining equal size for edges parallel to one axis while
1186
+ applying fixed foreshortening to others. This method simplifies the
1187
+ representation of a four-dimensional hypercube onto a two-dimensional
1188
+ plane, offering a geometrically consistent visualization.
1189
+
1183
1190
- ``None`` or ``O``: no embedding is provided
1184
1191
1185
1192
EXAMPLES:
@@ -1214,17 +1221,8 @@ def CubeGraph(n, embedding=1):
1214
1221
sage: g.show(figsize=[12,12],vertex_labels=False, vertex_size=20) # long time, needs sage.plot
1215
1222
sage: g = graphs.CubeGraph(9, embedding=2)
1216
1223
sage: g.show(figsize=[12,12],vertex_labels=False, vertex_size=20) # long time, needs sage.plot
1217
-
1218
- Testing issue :trac:`37040`::
1219
- sage: graphs.CubeGraph(3)._pos
1220
- {'000': (0.0, 0.0),
1221
- '001': (6.123...-17, 1.0),
1222
- '010': (0.707..., 0.707...),
1223
- '011': (0.707..., 1.707...),
1224
- '100': (1.0, 0.0),
1225
- '101': (1.0, 1.0),
1226
- '110': (1.707..., 0.707...),
1227
- '111': (1.707..., 1.707...)}
1224
+ sage: g = graphs.CubeGraph(9, embedding=3)
1225
+ sage: g.show(figsize=[12,12],vertex_labels=False, vertex_size=20) # long time, needs sage.plot
1228
1226
1229
1227
AUTHORS:
1230
1228
0 commit comments