#20155: Graph Generators: Add Turan Graph
-------------------------------------+-------------------------------------
       Reporter:  mcognetta          |        Owner:
           Type:  enhancement        |       Status:  needs_review
       Priority:  minor              |    Milestone:  sage-7.1
      Component:  graph theory       |   Resolution:
       Keywords:  graphs             |    Merged in:
        Authors:  Marco Cognetta     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/mcognetta/graph_generators__add_turan_graph|  
718ad7841a15352bc482f904ce8be89ff198086b
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by dcoudert):

 It might actually be safer to use something like that (without calls to
 ceil, floor):
 {{{
 sage: n,r=20,3
 sage: [n//r]*(r-n%r)+[n//r+1]*(n%r)
 [6, 7, 7]
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/20155#comment:4>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to