Skip to content

Commit ec1d448

Browse files
author
Matthias Koeppe
committed
sage.libs.gap, sage.groups: Update # needs
1 parent ebf9bf6 commit ec1d448

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

src/sage/groups/perm_gps/permgroup.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ def PermutationGroup(gens=None, *args, **kwds):
344344
Note that we provide generators for the acting group. The
345345
permutation group we construct is its homomorphic image::
346346
347+
sage: # needs sage.combinat
347348
sage: a = lambda g, x: vector(g*x, immutable=True)
348349
sage: X = [vector(x, immutable=True) for x in GF(3)^2]
349350
sage: G = SL(2,3); G.gens()
@@ -1547,6 +1548,7 @@ def representative_action(self,x,y):
15471548
15481549
TESTS::
15491550
1551+
sage: # needs sage.graphs
15501552
sage: g = graphs.PetersenGraph()
15511553
sage: g.relabel(list("abcdefghik"))
15521554
sage: g.vertices(sort=True)
@@ -3706,6 +3708,7 @@ def has_regular_subgroup(self, return_group=False):
37063708
37073709
But the automorphism group of Petersen's graph does not::
37083710
3711+
sage: # needs sage.graphs
37093712
sage: G = graphs.PetersenGraph().automorphism_group()
37103713
sage: G.has_regular_subgroup()
37113714
False
@@ -3767,6 +3770,7 @@ def blocks_all(self, representatives=True):
37673770
37683771
Picking an interesting group::
37693772
3773+
sage: # needs sage.graphs
37703774
sage: g = graphs.DodecahedralGraph()
37713775
sage: g.is_vertex_transitive()
37723776
True
@@ -3776,12 +3780,12 @@ def blocks_all(self, representatives=True):
37763780
37773781
Computing its blocks representatives::
37783782
3779-
sage: ag.blocks_all()
3783+
sage: ag.blocks_all() # needs sage.graphs
37803784
[[0, 15]]
37813785
37823786
Now the full block::
37833787
3784-
sage: sorted(ag.blocks_all(representatives = False)[0])
3788+
sage: sorted(ag.blocks_all(representatives=False)[0]) # needs sage.graphs
37853789
[[0, 15], [1, 16], [2, 12], [3, 13], [4, 9],
37863790
[5, 10], [6, 11], [7, 18], [8, 17], [14, 19]]
37873791
@@ -3977,6 +3981,7 @@ def minimal_generating_set(self):
39773981
39783982
EXAMPLES::
39793983
3984+
sage: # needs sage.graphs
39803985
sage: g = graphs.CompleteGraph(4)
39813986
sage: g.relabel(['a','b','c','d'])
39823987
sage: mgs = g.automorphism_group().minimal_generating_set(); len(mgs)

src/sage/libs/gap/libgap.pyx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ equivalent::
4646
sage: type(_)
4747
<class 'sage.rings.integer.Integer'>
4848
49-
sage: libgap.eval('5/3 + 7*E(3)').sage()
49+
sage: libgap.eval('5/3 + 7*E(3)').sage() # needs sage.rings.number_field
5050
7*zeta3 + 5/3
5151
5252
sage: gens_of_group = libgap.AlternatingGroup(4).GeneratorsOfGroup()
@@ -265,7 +265,7 @@ class Gap(Parent):
265265
266266
sage: libgap.has_coerce_map_from(ZZ)
267267
True
268-
sage: libgap.has_coerce_map_from(CyclotomicField(5)['x','y'])
268+
sage: libgap.has_coerce_map_from(CyclotomicField(5)['x','y']) # needs sage.rings.number_field
269269
True
270270
"""
271271
return True
@@ -362,11 +362,12 @@ class Gap(Parent):
362362
363363
We gracefully handle the case that the conversion fails (:trac:`18039`)::
364364
365-
sage: F.<a> = GF(9, modulus="first_lexicographic")
365+
sage: F.<a> = GF(9, modulus="first_lexicographic") # needs sage.rings.finite_rings
366366
sage: libgap(Matrix(F, [[a]]))
367367
Traceback (most recent call last):
368368
...
369-
NotImplementedError: conversion of (Givaro) finite field element to GAP not implemented except for fields defined by Conway polynomials.
369+
NotImplementedError: conversion of (Givaro) finite field element to GAP
370+
not implemented except for fields defined by Conway polynomials.
370371
"""
371372
ring = M.base_ring()
372373
try:

0 commit comments

Comments
 (0)