#3932: [with patch, needs work] generate size n trees in linear time
--------------------------+-------------------------------------------------
 Reporter:  jason         |        Owner:  rlm     
     Type:  enhancement   |       Status:  reopened
 Priority:  major         |    Milestone:  sage-4.0
Component:  graph theory  |   Resolution:          
 Keywords:                |  
--------------------------+-------------------------------------------------

Comment(by mabshoff):

 While I am in pedantic mode:
 {{{
 106             self.l = <int *>sage_malloc(self.n * sizeof(int))
 107             self.w = <int *>sage_malloc(self.n * sizeof(int))
 }}}
 should verify that the allocation actually worked. If either one of them
 fails for whatever reason we will have the code go *boom*.

 And {{{__next__}}} also needs a doctest ;)

 Cheers,

 Michael

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/3932#comment:14>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of 
Reinventing the Wheel

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to