We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f02cd01 commit 01fe369Copy full SHA for 01fe369
src/sage/graphs/generators/families.py
@@ -1231,9 +1231,12 @@ def CubeGraph(n, embedding=1):
1231
- Robert Miller
1232
- David Coudert
1233
"""
1234
- if embedding == 1:
+ if embedding == 1 or embedding == 3:
1235
# construct recursively the adjacency dict and the embedding
1236
- theta = float(pi/4) if n == 3 else float(pi/n)
+ theta = float(pi/n)
1237
+ if embedding == 3 and n > 2:
1238
+ theta = float(pi/(2*n-2))
1239
+
1240
d = {'': []}
1241
dn = {}
1242
p = {'': (float(0), float(0))}
0 commit comments