Skip to content

Commit aa36e28

Browse files
author
Matthias Koeppe
committed
More # optional
1 parent 7b5f3db commit aa36e28

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/sage/geometry/lattice_polytope.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2988,15 +2988,15 @@ def normal_form(self, algorithm="palp", permutation=False):
29882988
We can perform the same examples using other algorithms::
29892989
29902990
sage: o = lattice_polytope.cross_polytope(2)
2991-
sage: o.normal_form(algorithm="palp_native")
2991+
sage: o.normal_form(algorithm="palp_native") # optional - sage.groups
29922992
M( 1, 0),
29932993
M( 0, 1),
29942994
M( 0, -1),
29952995
M(-1, 0)
29962996
in 2-d lattice M
29972997
29982998
sage: o = lattice_polytope.cross_polytope(2)
2999-
sage: o.normal_form(algorithm="palp_modified")
2999+
sage: o.normal_form(algorithm="palp_modified") # optional - sage.groups
30003000
M( 1, 0),
30013001
M( 0, 1),
30023002
M( 0, -1),
@@ -3054,13 +3054,13 @@ def _palp_modified_normal_form(self, permutation=False):
30543054
M(-1, 0),
30553055
M( 0, -1)
30563056
in 2-d lattice M
3057-
sage: o._palp_modified_normal_form() # optional - sage.graphs
3057+
sage: o._palp_modified_normal_form() # optional - sage.graphs sage.groups
30583058
M( 1, 0),
30593059
M( 0, 1),
30603060
M( 0, -1),
30613061
M(-1, 0)
30623062
in 2-d lattice M
3063-
sage: o._palp_modified_normal_form(permutation=True) # optional - sage.graphs
3063+
sage: o._palp_modified_normal_form(permutation=True) # optional - sage.graphs sage.groups
30643064
(M( 1, 0),
30653065
M( 0, 1),
30663066
M( 0, -1),
@@ -3159,7 +3159,7 @@ def _palp_PM_max(self, check=False):
31593159
sage: o = lattice_polytope.cross_polytope(2)
31603160
sage: PM = o.vertex_facet_pairing_matrix()
31613161
sage: PM_max = PM.permutation_normal_form() # optional - sage.graphs
3162-
sage: PM_max == o._palp_PM_max() # optional - sage.graphs
3162+
sage: PM_max == o._palp_PM_max() # optional - sage.graphs sage.groups
31633163
True
31643164
sage: P2 = ReflexivePolytope(2, 0)
31653165
sage: PM_max, permutations = P2._palp_PM_max(check=True)

src/sage/geometry/polyhedron/base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ class Polyhedron_base(Polyhedron_base7):
124124
125125
::
126126
127-
sage: p = polytopes.flow_polytope(digraphs.DeBruijn(3,2)) # optional - sage.graphs
128-
sage: TestSuite(p).run() # optional - sage.graphs
127+
sage: p = polytopes.flow_polytope(digraphs.DeBruijn(3,2)) # optional - sage.combinat sage.graphs
128+
sage: TestSuite(p).run() # optional - sage.combinat sage.graphs
129129
130130
::
131131
@@ -264,10 +264,10 @@ def to_linear_program(self, solver=None, return_variable=False, base_ring=None):
264264
265265
TESTS::
266266
267-
sage: p = polytopes.flow_polytope(digraphs.DeBruijn(3,2)); p # optional - sage.graphs
267+
sage: p = polytopes.flow_polytope(digraphs.DeBruijn(3,2)); p # optional - sage.combinat sage.graphs
268268
A 19-dimensional polyhedron in QQ^27
269269
defined as the convex hull of 1 vertex and 148 rays
270-
sage: p.to_linear_program().polyhedron() == p # optional - sage.graphs
270+
sage: p.to_linear_program().polyhedron() == p # optional - sage.combinat sage.graphs
271271
True
272272
273273
sage: p = polytopes.icosahedron() # optional - sage.rings.number_field

0 commit comments

Comments
 (0)