#18418: Clean Hyperbolicity Module
-------------------------------------+-------------------------------------
       Reporter:  borassi            |        Owner:  borassi
           Type:  enhancement        |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.7
      Component:  graph theory       |   Resolution:
       Keywords:  Hyperbolicity      |    Merged in:
        Authors:  borassi            |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/borassi/clean_hyperbolicity_module|  
b7cecc1b4e41eb973d517668e2d26522af94474d
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by dcoudert):

 Hello,

 - editing remark : comments must be formatted in 80 columns format. Don't
 ask why ;)
 - in the sort_pairs method, you are not using quick sort but counting sort
 - there is a recent and useful method for malloc. See file
 `generic_graph_pyx.pyx` for example
 {{{
 from sage.ext.memory cimport check_allocarray, sage_malloc, sage_free
 elist = <int*>check_allocarray(2 * len(G.edges()) + 2, sizeof(int))
 }}}
 - I agree to remove `basic+`, although I would have prefer to rename
 `basic+` into `basic` and remove the old `basic` which is slower. The
 basic method is useful only for comparison purpose.
 - the purpose of the `triples` list is to avoid computing many times the
 sum S1. It adds a loop but reduces the number of operations. Do you have a
 better solution in mind ?

 David.

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