Skip to content

Commit 7c7b1fd

Browse files
committed
further fixes to supergreedy docstring
1 parent 7b54ec7 commit 7c7b1fd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/sage/combinat/posets/linear_extensions.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -257,16 +257,16 @@ def is_supergreedy(self):
257257
Return ``True`` if the linear extension is supergreedy.
258258
259259
A linear extension `[x_1<x_2<...<x_t]` of a finite ordered
260-
set `P=(P, <)` is super greedy if it can be obtained using
260+
set `P=(P, <)` is *super greedy* if it can be obtained using
261261
the following procedure: Choose `x_1` to be a minimal
262262
element of `P`; suppose `x_1,...,x_i` have been chosen;
263263
define `p(x)` to be the largest `j\leq i` such that `x_j<x`
264-
if such a `j` exists and $0$ otherwise; choose `x_{i+1}`
264+
if such a `j` exists and 0 otherwise; choose `x_{i+1}`
265265
to be a minimal element of `P-\{x_1,...,x_i\}` which
266-
maximizes `p`..
266+
maximizes `p`.
267267
268-
Informally said a linear extension is supergreedy if it "always
269-
goes up and receedes the least" loosely speaking, supergreedy
268+
Informally, a linear extension is supergreedy if it "always
269+
goes up and receedes the least"; in other words, supergreedy
270270
linear extensions are depth-first linear extensions.
271271
272272
EXAMPLES::

0 commit comments

Comments
 (0)