Changes between Initial Version and Version 1 of Ticket #15283, comment 17


Ignore:
Timestamp:
Oct 25, 2013, 1:34:31 AM (9 years ago)
Author:
Darij Grinberg
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15283, comment 17

    initial v1  
    11Thanks, Nathann and Nils, for your comments. I've decided to provide two implementations for `is_chain`, one using sorting when the poset is finite (in which case, as Nils suggests, I'll use a `key` attribute), one by checking all pairs of possible relations when the poset is not assumed finite.
    22
    3 I'm still reluctant to make this part of the existing `is_chain` method.
     3I'm still reluctant to make this part of the existing `is_chain` method. One reason is that the existing `is_chain` exists only for finite posets, so I'd have to move it from `sage/combinat/posets.py` to `sage/categories/posets.py` and give it some stupid error behavior when the poset is not finite.
    44
    55I'm carrying this over into a new ticket: #15322. Please disregard the additions-dg.patch I posted here, as it is buggy.