Skip to content

Commit c39ca6f

Browse files
committed
removed test and updated documentation
1 parent 01fe369 commit c39ca6f

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

src/sage/graphs/generators/families.py

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,6 +1180,13 @@ def CubeGraph(n, embedding=1):
11801180
vertices in each column represents rows in Pascal's triangle. See for
11811181
instance the :wikipedia:`10-cube` for more details.
11821182
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+
11831190
- ``None`` or ``O``: no embedding is provided
11841191
11851192
EXAMPLES:
@@ -1214,17 +1221,8 @@ def CubeGraph(n, embedding=1):
12141221
sage: g.show(figsize=[12,12],vertex_labels=False, vertex_size=20) # long time, needs sage.plot
12151222
sage: g = graphs.CubeGraph(9, embedding=2)
12161223
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
12281226
12291227
AUTHORS:
12301228

0 commit comments

Comments
 (0)