Skip to content

Commit f3e9bd0

Browse files
author
Matthias Koeppe
committed
sage.combinat: Update # optional / # needs
1 parent 85ef414 commit f3e9bd0

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

src/sage/combinat/root_system/cartan_type.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ def __call__(self, *args):
544544
sage: CT = CartanType([['A',2]])
545545
sage: CT.is_irreducible()
546546
True
547-
sage: CT.cartan_matrix()
547+
sage: CT.cartan_matrix() # optional - sage.graphs
548548
[ 2 -1]
549549
[-1 2]
550550
sage: CT = CartanType(['A2'])
@@ -1248,7 +1248,7 @@ def subtype(self, index_set):
12481248
O=<=O---O=<=O
12491249
0 1 2 3
12501250
BC3~
1251-
sage: ct.subtype([1,2,3])
1251+
sage: ct.subtype([1,2,3]) # optional - sage.graphs
12521252
['C', 3]
12531253
"""
12541254
return self.cartan_matrix().subtype(index_set).cartan_type()
@@ -1514,8 +1514,8 @@ def _default_folded_cartan_type(self):
15141514
15151515
EXAMPLES::
15161516
1517-
sage: D = CartanMatrix([[2, -3], [-2, 2]]).dynkin_diagram()
1518-
sage: D._default_folded_cartan_type()
1517+
sage: D = CartanMatrix([[2, -3], [-2, 2]]).dynkin_diagram() # optional - sage.graphs
1518+
sage: D._default_folded_cartan_type() # optional - sage.graphs
15191519
Dynkin diagram of rank 2 as a folding of Dynkin diagram of rank 2
15201520
"""
15211521
from sage.combinat.root_system.type_folded import CartanTypeFolded
@@ -1556,7 +1556,7 @@ def ascii_art(self, label='lambda x: x', node=None):
15561556
The label option is useful to visualize various statistics on
15571557
the nodes of the Dynkin diagram::
15581558
1559-
sage: a = cartan_type.col_annihilator(); a
1559+
sage: a = cartan_type.col_annihilator(); a # optional - sage.graphs
15601560
Finite family {0: 1, 1: 1, 2: 2, 3: 2, 4: 2, 5: 2}
15611561
sage: print(CartanType(['B',5,1]).ascii_art(label=a.__getitem__)) # optional - sage.graphs
15621562
O 1
@@ -1622,7 +1622,7 @@ def cartan_matrix(self):
16221622
16231623
EXAMPLES::
16241624
1625-
sage: CartanType(['A',4]).cartan_matrix()
1625+
sage: CartanType(['A',4]).cartan_matrix() # optional - sage.graphs
16261626
[ 2 -1 0 0]
16271627
[-1 2 -1 0]
16281628
[ 0 -1 2 -1]
@@ -1687,7 +1687,7 @@ def symmetrizer(self):
16871687
16881688
EXAMPLES::
16891689
1690-
sage: CartanType(["B",5]).symmetrizer()
1690+
sage: CartanType(["B",5]).symmetrizer() # optional - sage.graphs
16911691
Finite family {1: 2, 2: 2, 3: 2, 4: 2, 5: 1}
16921692
16931693
Here is a neat trick to visualize it better::
@@ -2094,7 +2094,7 @@ def row_annihilator(self, m=None):
20942094
20952095
EXAMPLES::
20962096
2097-
sage: RootSystem(['C',2,1]).cartan_type().acheck()
2097+
sage: RootSystem(['C',2,1]).cartan_type().acheck() # optional - sage.graphs
20982098
Finite family {0: 1, 1: 1, 2: 1}
20992099
sage: RootSystem(['D',4,1]).cartan_type().acheck()
21002100
Finite family {0: 1, 1: 1, 2: 2, 3: 1, 4: 1}
@@ -2143,7 +2143,7 @@ def col_annihilator(self):
21432143
21442144
EXAMPLES::
21452145
2146-
sage: RootSystem(['C',2,1]).cartan_type().a()
2146+
sage: RootSystem(['C',2,1]).cartan_type().a() # optional - sage.graphs
21472147
Finite family {0: 1, 1: 2, 2: 1}
21482148
sage: RootSystem(['D',4,1]).cartan_type().a()
21492149
Finite family {0: 1, 1: 1, 2: 2, 3: 1, 4: 1}
@@ -2172,7 +2172,7 @@ def c(self):
21722172
21732173
EXAMPLES::
21742174
2175-
sage: RootSystem(['C',2,1]).cartan_type().c()
2175+
sage: RootSystem(['C',2,1]).cartan_type().c() # optional - sage.graphs
21762176
Finite family {0: 1, 1: 2, 2: 1}
21772177
sage: RootSystem(['D',4,1]).cartan_type().c()
21782178
Finite family {0: 1, 1: 1, 2: 1, 3: 1, 4: 1}
@@ -2228,7 +2228,7 @@ def translation_factors(self):
22282228
22292229
EXAMPLES::
22302230
2231-
sage: CartanType(['C',2,1]).translation_factors()
2231+
sage: CartanType(['C',2,1]).translation_factors() # optional - sage.graphs
22322232
Finite family {0: 1, 1: 2, 2: 1}
22332233
sage: CartanType(['C',2,1]).dual().translation_factors()
22342234
Finite family {0: 1, 1: 1, 2: 1}

src/sage/combinat/root_system/reflection_group_real.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ def is_chevie_available():
224224
225225
EXAMPLES::
226226
227+
sage: # needs sage.groups
227228
sage: from sage.combinat.root_system.reflection_group_real import is_chevie_available
228229
sage: is_chevie_available() # random
229230
False

0 commit comments

Comments
 (0)