Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
add comment in code to make it clear what happens
Browse files Browse the repository at this point in the history
  • Loading branch information
dkrenn committed Sep 21, 2015
1 parent 7af4b6b commit a49a20d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/sage/data_structures/mutable_poset.py
Original file line number Diff line number Diff line change
Expand Up @@ -2010,6 +2010,8 @@ def add(self, element):
smaller = self.null.covers(new, reverse=False)
larger = self.oo.covers(new, reverse=True)

# In the following we first search towards oo (reverse=False) and
# then towards null (reverse=True; everything is "inverted").
for reverse in (False, True):
sm = smaller if not reverse else larger
la = larger if not reverse else smaller
Expand Down

0 comments on commit a49a20d

Please sign in to comment.