Skip to content

Commit 5bd4f4a

Browse files
committed
Fixed syntax and typos in Tutte layout doctest.
1 parent c825343 commit 5bd4f4a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/sage/graphs/generic_graph.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21664,19 +21664,19 @@ def layout_tutte(self, external_face=None, external_face_pos=None, **options):
2166421664
Graphics object consisting of 20 graphics primitives
2166521665
sage: g = graphs.CubeGraph(n=3, embedding=2)
2166621666
sage: g.plot(layout='tutte', external_face=['101','111','001',
21667-
'011'], external_face_pos={'101':(1,0), '111':(0,0), '001':(2,1),
21668-
'011':(-1,1)}) # needs sage.plot
21667+
....: '011'], external_face_pos={'101':(1,0), '111':(0,0),
21668+
....: '001':(2,1), '011':(-1,1)}) # needs sage.plot
2166921669
Graphics object consisting of 21 graphics primitives
2167021670
sage: g = graphs.CompleteGraph(n=5)
2167121671
sage: g.plot(layout='tutte', external_face=[0,1,2])
2167221672
Traceback (most recent call last):
2167321673
...
21674-
ValueError: Graph must be planar
21674+
ValueError: graph must be planar
2167521675
sage: g = graphs.CycleGraph(n=10)
2167621676
sage: g.layout(layout='tutte', external_face=[0,1,2,3,4,5,6,7,8,9])
2167721677
Traceback (most recent call last):
2167821678
...
21679-
ValueError: Graph must be 3-connected
21679+
ValueError: graph must be 3-connected
2168021680
"""
2168121681
from sage.matrix.constructor import zero_matrix
2168221682
from sage.rings.real_mpfr import RR

0 commit comments

Comments
 (0)