#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 ncohen):

 > should be `degrees` there...

 Dima please, let's not create 9999 functions which all do the same thing.
 Look, we have had this in graphs for ages and nobody died:

 {{{
 sage: g = graphs.PetersenGraph()
 sage: g.degree(1)
 3
 sage: g.degree()
 [3, 3, 3, 3, 3, 3, 3, 3, 3, 3]
 sage: g.degree(labels=True)
 {0: 3, 1: 3, 2: 3, 3: 3, 4: 3, 5: 3, 6: 3, 7: 3, 8: 3, 9: 3}
 }}}

 > Anyhow, I think this should also be a separate function, called
 `degrees`.
 > Then `degrees(1)` or `degrees()` would to what your `degree()` currently
 does.

 1-year deprecation ?

 Dima tell me: do you have an objection if I change `degree(set=the_set)`
 to `degree(subset=the_set)` ? And I will remove `sets_of_size` if you
 refuse it, it is better than a "degrees" in my mind.

 Nathann

--
Ticket URL: <http://trac.sagemath.org/ticket/17108#comment:27>
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.

Reply via email to