Skip to content

Commit c5195ec

Browse files
committed
fixed a bug in cubeGraph
1 parent e249bef commit c5195ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage/graphs/generators/families.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1222,7 +1222,7 @@ def CubeGraph(n, embedding=1):
12221222
"""
12231223
if embedding == 1:
12241224
# construct recursively the adjacency dict and the embedding
1225-
theta = float(pi/n)
1225+
theta = float(pi/4) if n==3 else float(pi/n)
12261226
d = {'': []}
12271227
dn = {}
12281228
p = {'': (float(0), float(0))}

0 commit comments

Comments
 (0)