Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit 46ed87b

Browse files
committed
more fixes in permutation.py
1 parent 8cbfcbd commit 46ed87b

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

src/sage/combinat/permutation.py

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -223,15 +223,15 @@
223223
===================
224224
"""
225225

226-
#*****************************************************************************
226+
# ****************************************************************************
227227
# Copyright (C) 2007 Mike Hansen <[email protected]>
228228
#
229229
# This program is free software: you can redistribute it and/or modify
230230
# it under the terms of the GNU General Public License as published by
231231
# the Free Software Foundation, either version 2 of the License, or
232232
# (at your option) any later version.
233233
# https://www.gnu.org/licenses/
234-
#*****************************************************************************
234+
# ****************************************************************************
235235

236236
from sage.structure.parent import Parent
237237
from sage.structure.unique_representation import UniqueRepresentation
@@ -701,7 +701,7 @@ def size(self):
701701

702702
def cycle_string(self, singletons=False):
703703
"""
704-
Returns a string of the permutation in cycle notation.
704+
Return a string of the permutation in cycle notation.
705705
706706
If ``singletons=True``, it includes 1-cycles in the string.
707707
@@ -968,7 +968,7 @@ def to_cycles(self, singletons=True, use_min=True):
968968

969969
def _to_cycles_orig(self, singletons=True):
970970
r"""
971-
Returns the permutation ``self`` as a list of disjoint cycles.
971+
Return the permutation ``self`` as a list of disjoint cycles.
972972
973973
EXAMPLES::
974974
@@ -1115,7 +1115,7 @@ def _to_cycles_list(self, singletons=True):
11151115

11161116
def to_permutation_group_element(self):
11171117
"""
1118-
Returns a PermutationGroupElement equal to self.
1118+
Return a PermutationGroupElement equal to self.
11191119
11201120
EXAMPLES::
11211121
@@ -1391,7 +1391,7 @@ def rank(self):
13911391
n = len(self)
13921392
factoradic = self.to_lehmer_code()
13931393
return sum(factoradic[n - 1 - i] * factorial(i)
1394-
for i in reversed(range(n))
1394+
for i in reversed(range(n)))
13951395

13961396
##############
13971397
# Inversions #
@@ -1863,10 +1863,10 @@ def _icondition(self, i):
18631863
18641864
.. NOTE::
18651865
1866-
An imove (that is, an iswitch or an ishift) can only be applied
1867-
when the relative positions of `i-1,i,i+1` are one of '213',
1868-
'132', '231', or '312'. ``None`` is returned in the other cases
1869-
to signal that an imove cannot be applied.
1866+
An imove (that is, an iswitch or an ishift) can only be applied
1867+
when the relative positions of `i-1,i,i+1` are one of '213',
1868+
'132', '231', or '312'. ``None`` is returned in the other cases
1869+
to signal that an imove cannot be applied.
18701870
18711871
EXAMPLES::
18721872
@@ -2155,9 +2155,9 @@ def longest_increasing_subsequences(self):
21552155
r"""
21562156
Return the list of the longest increasing subsequences of ``self``.
21572157
2158-
.. note::
2158+
.. NOTE::
21592159
2160-
The algorithm is not optimal.
2160+
The algorithm is not optimal.
21612161
21622162
EXAMPLES::
21632163
@@ -3646,7 +3646,7 @@ def bruhat_smaller(self):
36463646

36473647
def bruhat_greater(self):
36483648
r"""
3649-
Returns the combinatorial class of permutations greater than or
3649+
Return the combinatorial class of permutations greater than or
36503650
equal to ``self`` in the Bruhat order (on the symmetric group
36513651
containing ``self``).
36523652
@@ -4307,7 +4307,7 @@ def simion_schmidt(self, avoid=[1,2,3]):
43074307
@combinatorial_map(order=2,name='reverse')
43084308
def reverse(self):
43094309
"""
4310-
Returns the permutation obtained by reversing the list.
4310+
Return the permutation obtained by reversing the list.
43114311
43124312
EXAMPLES::
43134313
@@ -4373,7 +4373,7 @@ def permutation_poset(self):
43734373

43744374
def dict(self):
43754375
"""
4376-
Returns a dictionary corresponding to the permutation.
4376+
Return a dictionary corresponding to the permutation.
43774377
43784378
EXAMPLES::
43794379

0 commit comments

Comments
 (0)