#17108: IncidenceStructure.degree(set={1,2,3})
-------------------------------------+-------------------------------------
Reporter: ncohen | Owner:
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-6.4
Component: combinatorial | Resolution:
designs | Merged in:
Keywords: | Reviewers:
Authors: Nathann Cohen | Work issues:
Report Upstream: N/A | Commit:
Branch: u/ncohen/17108 | f82b9c41095b538a5da29ba015264c24adddc7c4
Dependencies: #17104 | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by vdelecroix):
Hello,
I agree with Dima that `set` and `type` should be avoided as argument or
variable name.
Concerning the number of functions needed, the only ambiguity I see is
that `.degree()` can return a list of degrees (so that it would be more
appropriate to call it `.degrees()`). What about
- `degree(self, data, subset=None)`: return the degree of a point or a
subset (if `None` we assume that there is no amiguity, otherwise it must
be set to `True` or `False`).
- `degrees(self, size=1)`: return the set of degrees of points. If `size`
is provided with an integer > 1 then it returns the degrees of subsets of
that given size.
Vincent
--
Ticket URL: <http://trac.sagemath.org/ticket/17108#comment:33>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.