#14527: chromatic_polynomial - fixed memory leak and added new test cases
----------------------------+-----------------------------------------------
   Reporter:  azi           |             Owner:  jason, ncohen, rlm
       Type:  enhancement   |            Status:  new               
   Priority:  major         |         Milestone:  sage-5.10         
  Component:  graph theory  |          Keywords:                    
Work issues:                |   Report Upstream:  N/A               
  Reviewers:                |           Authors:                    
  Merged in:                |      Dependencies:                    
   Stopgaps:                |  
----------------------------+-----------------------------------------------
 This patch fixes a minor memory leak in the chromatic polynomial code. It
 appears to me that the mpz variables should be freed at the end of the
 function.

 I have also added additional tests.

 The code appears not to be practical for graphs of order +15. I am
 wondering if we could gain some speed by using memoization. It would
 complicate the code quite a bit but it might be a drastic improvement!

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/14527>
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to