Skip to content

Commit 7f11106

Browse files
author
Matthias Koeppe
committed
sage.combinat: Add # optional
1 parent a2c691c commit 7f11106

10 files changed

+37
-30
lines changed

src/sage/combinat/designs/bibd.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ def biplane(n, existence=False):
7575
7676
- ``existence`` (boolean) -- instead of building the design, return:
7777
78-
- ``True`` -- meaning that Sage knows how to build the design
78+
- ``True`` -- meaning that Sage knows how to build the design
7979
80-
- ``Unknown`` -- meaning that Sage does not know how to build the
81-
design, but that the design may exist (see :mod:`sage.misc.unknown`).
80+
- ``Unknown`` -- meaning that Sage does not know how to build the
81+
design, but that the design may exist (see :mod:`sage.misc.unknown`).
8282
83-
- ``False`` -- meaning that the design does not exist.
83+
- ``False`` -- meaning that the design does not exist.
8484
8585
.. SEEALSO::
8686

src/sage/combinat/designs/designs_pyx.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,10 +376,10 @@ def is_pairwise_balanced_design(blocks,v,K=None,lambd=1,verbose=False):
376376
sage: is_pairwise_balanced_design(TD + groups, 40, [10], 1, verbose=True) # optional - sage.modules
377377
a block has size 4 while K=[10]
378378
False
379-
sage: is_pairwise_balanced_design([[2,2]],40,[2],1,verbose=True)
379+
sage: is_pairwise_balanced_design([[2,2]], 40, [2], 1, verbose=True)
380380
The following block has repeated elements: [2, 2]
381381
False
382-
sage: is_pairwise_balanced_design([["e",2]],40,[2],1,verbose=True)
382+
sage: is_pairwise_balanced_design([["e",2]], 40, [2], 1, verbose=True)
383383
e does not belong to [0,...,39]
384384
False
385385
"""

src/sage/combinat/designs/difference_matrices.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# sage.doctest: optional - sage.rings.finite_rings
12
r"""
23
Difference Matrices
34
@@ -146,12 +147,12 @@ def difference_matrix(g,k,lmbda=1,existence=False,check=True):
146147
147148
- ``existence`` (boolean) -- instead of building the design, return:
148149
149-
- ``True`` -- meaning that Sage knows how to build the design
150+
- ``True`` -- meaning that Sage knows how to build the design
150151
151-
- ``Unknown`` -- meaning that Sage does not know how to build the
152-
design, but that the design may exist (see :mod:`sage.misc.unknown`).
152+
- ``Unknown`` -- meaning that Sage does not know how to build the
153+
design, but that the design may exist (see :mod:`sage.misc.unknown`).
153154
154-
- ``False`` -- meaning that the design does not exist.
155+
- ``False`` -- meaning that the design does not exist.
155156
156157
.. NOTE::
157158

src/sage/combinat/designs/evenly_distributed_sets.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# -*- coding: utf-8 -*-
1+
# sage.doctest: optional - sage.rings.finite_rings
22
r"""
33
Evenly distributed sets in finite fields
44

src/sage/combinat/designs/group_divisible_designs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# sage.doctest: optional - sage.rings.finite_rings
12
r"""
23
Group-Divisible Designs (GDD)
34

src/sage/combinat/designs/incidence_structures.py

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ class IncidenceStructure():
105105
Or by its adjacency matrix (a `\{0,1\}`-matrix in which rows are indexed by
106106
points and columns by blocks)::
107107
108-
sage: m = matrix([[0,1,0],[0,0,1],[1,0,1],[1,1,1]])
109-
sage: IncidenceStructure(m)
108+
sage: m = matrix([[0,1,0],[0,0,1],[1,0,1],[1,1,1]]) # optional - sage.modules
109+
sage: IncidenceStructure(m) # optional - sage.modules
110110
Incidence structure with 4 points and 3 blocks
111111
112112
The points can be any (hashable) object::
@@ -736,7 +736,7 @@ def num_points(self):
736736
737737
EXAMPLES::
738738
739-
sage: designs.DesarguesianProjectivePlaneDesign(2).num_points()
739+
sage: designs.DesarguesianProjectivePlaneDesign(2).num_points() # optional - sage.rings.finite_rings
740740
7
741741
sage: B = IncidenceStructure(4, [[0,1],[0,2],[0,3],[1,2], [1,2,3]])
742742
sage: B.num_points()
@@ -750,7 +750,7 @@ def num_blocks(self):
750750
751751
EXAMPLES::
752752
753-
sage: designs.DesarguesianProjectivePlaneDesign(2).num_blocks()
753+
sage: designs.DesarguesianProjectivePlaneDesign(2).num_blocks() # optional - sage.rings.finite_rings
754754
7
755755
sage: B = IncidenceStructure(4, [[0,1],[0,2],[0,3],[1,2], [1,2,3]])
756756
sage: B.num_blocks()
@@ -1175,7 +1175,7 @@ def incidence_graph(self,labels=False):
11751175
11761176
sage: BD = IncidenceStructure(7, [[0,1,2],[0,3,4],[0,5,6],[1,3,5],
11771177
....: [1,4,6],[2,3,6],[2,4,5]])
1178-
sage: BD.incidence_graph()
1178+
sage: BD.incidence_graph() # optional - sage.modules
11791179
Bipartite graph on 14 vertices
11801180
sage: A = BD.incidence_matrix() # optional - sage.modules
11811181
sage: Graph(block_matrix([[A*0, A], # optional - sage.modules
@@ -1222,14 +1222,14 @@ def is_berge_cyclic(self):
12221222
12231223
EXAMPLES::
12241224
1225-
sage: Hypergraph(5, [[1, 2, 3], [2, 3 ,4]]).is_berge_cyclic()
1225+
sage: Hypergraph(5, [[1, 2, 3], [2, 3, 4]]).is_berge_cyclic() # optional - sage.modules
12261226
True
1227-
sage: Hypergraph(6, [[1, 2, 3], [3 ,4, 5]]).is_berge_cyclic()
1227+
sage: Hypergraph(6, [[1, 2, 3], [3, 4, 5]]).is_berge_cyclic() # optional - sage.modules
12281228
False
12291229
12301230
TESTS::
12311231
1232-
sage: Hypergraph(5, [[1, 2, 3], [2, 3]]).is_berge_cyclic()
1232+
sage: Hypergraph(5, [[1, 2, 3], [2, 3]]).is_berge_cyclic() # optional - sage.modules
12331233
Traceback (most recent call last):
12341234
...
12351235
TypeError: Berge cycles are defined for uniform hypergraphs only
@@ -1698,13 +1698,13 @@ def is_generalized_quadrangle(self, verbose=False, parameters=False):
16981698
16991699
EXAMPLES::
17001700
1701-
sage: h = designs.CremonaRichmondConfiguration()
1702-
sage: h.is_generalized_quadrangle()
1701+
sage: h = designs.CremonaRichmondConfiguration() # optional - networkx
1702+
sage: h.is_generalized_quadrangle() # optional - networkx
17031703
True
17041704
17051705
This is actually a *regular* generalized quadrangle::
17061706
1707-
sage: h.is_generalized_quadrangle(parameters=True)
1707+
sage: h.is_generalized_quadrangle(parameters=True) # optional - networkx
17081708
(2, 2)
17091709
17101710
TESTS::
@@ -1773,8 +1773,8 @@ def dual(self, algorithm=None):
17731773
17741774
The dual of a projective plane is a projective plane::
17751775
1776-
sage: PP = designs.DesarguesianProjectivePlaneDesign(4)
1777-
sage: PP.dual().is_t_design(return_parameters=True) # optional - sage.modules
1776+
sage: PP = designs.DesarguesianProjectivePlaneDesign(4) # optional - sage.rings.finite_rings
1777+
sage: PP.dual().is_t_design(return_parameters=True) # optional - sage.rings.finite_rings sage.modules
17781778
(True, (2, 21, 5, 1))
17791779
17801780
TESTS::
@@ -1817,14 +1817,14 @@ def automorphism_group(self):
18171817
18181818
EXAMPLES::
18191819
1820-
sage: P = designs.DesarguesianProjectivePlaneDesign(2); P
1820+
sage: P = designs.DesarguesianProjectivePlaneDesign(2); P # optional - sage.rings.finite_rings
18211821
(7,3,1)-Balanced Incomplete Block Design
1822-
sage: G = P.automorphism_group() # optional - sage.groups
1823-
sage: G.is_isomorphic(PGL(3,2)) # optional - sage.groups
1822+
sage: G = P.automorphism_group() # optional - sage.groups sage.rings.finite_rings
1823+
sage: G.is_isomorphic(PGL(3,2)) # optional - sage.groups sage.rings.finite_rings
18241824
True
1825-
sage: G # optional - sage.groups
1825+
sage: G # optional - sage.groups sage.rings.finite_rings
18261826
Permutation Group with generators [...]
1827-
sage: G.cardinality() # optional - sage.groups
1827+
sage: G.cardinality() # optional - sage.groups sage.rings.finite_rings
18281828
168
18291829
18301830
A non self-dual example::

src/sage/combinat/designs/orthogonal_arrays.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# sage.doctest: optional - sage.rings.finite_rings
12
r"""
23
Orthogonal arrays (OA)
34
@@ -1954,7 +1955,8 @@ def OA_from_PBD(k,n,PBD, check=True):
19541955
sage: OA_from_PBD(4,10,pbd)
19551956
Traceback (most recent call last):
19561957
...
1957-
EmptySetError: There is no OA(n+1,n) - 3.OA(n+1,1) as all blocks intersect in a projective plane.
1958+
EmptySetError: There is no OA(n+1,n) - 3.OA(n+1,1)
1959+
as all blocks intersect in a projective plane.
19581960
19591961
Or an `OA(3,6)` (as the PBD has 10 points)::
19601962

src/sage/combinat/designs/orthogonal_arrays_build_recursive.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# sage.doctest: optional - sage.rings.finite_rings
12
r"""
23
Orthogonal arrays (build recursive constructions)
34

src/sage/combinat/designs/orthogonal_arrays_find_recursive.pyx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# sage.doctest: optional - sage.rings.finite_rings
12
# cython: cdivision=True
23
r"""
34
Orthogonal arrays (find recursive constructions)

src/sage/combinat/designs/resolvable_bibd.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# sage.doctest: optional - sage.rings.finite_rings
12
r"""
23
Resolvable Balanced Incomplete Block Design (RBIBD)
34

0 commit comments

Comments
 (0)