Changes between Initial Version and Version 1 of Ticket #15283, comment 17
 Timestamp:
 Oct 25, 2013, 1:34:31 AM (9 years ago)
Legend:
 Unmodified
 Added
 Removed
 Modified

Ticket #15283, comment 17
initial v1 1 1 Thanks, 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. 2 2 3 I'm still reluctant to make this part of the existing `is_chain` method. 3 I'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. 4 4 5 5 I'm carrying this over into a new ticket: #15322. Please disregard the additionsdg.patch I posted here, as it is buggy.