#5793: [with patch, needs work] New algorithm for Max Clique in Graph class 
using
Cython
--------------------------+-------------------------------------------------
 Reporter:  ncohen        |        Owner:  rlm       
     Type:  enhancement   |       Status:  reopened  
 Priority:  minor         |    Milestone:  sage-4.1.1
Component:  graph theory  |   Resolution:            
 Keywords:                |     Reviewer:            
   Author:                |       Merged:            
--------------------------+-------------------------------------------------

Comment(by ncohen):

 I hope all is fixed now... Though I just renamed cliquer.pxi to
 cliquer.pxd without really understanding the difference ^^;

 By the way, I am not really sure this possibility to change the algorithm
 used to compute the cliquer number is that useful... Just take a look at
 this :

 sage: g=graphs.RandomGNP(100,.5)
 sage: time g.clique_number(algorithm="networkx")
 CPU times: user 2.49 s, sys: 0.00 s, total: 2.49 s
 Wall time: 2.49 s
 9
 sage: time g.clique_number()
 CPU times: user 0.01 s, sys: 0.00 s, total: 0.01 s
 Wall time: 0.01 s
 9
 sage: g=graphs.RandomGNP(150,.5)
 sage: time g.clique_number(algorithm="networkx")
 CPU times: user 18.45 s, sys: 0.04 s, total: 18.49 s
 Wall time: 18.49 s
 10
 sage: time g.clique_number()
 CPU times: user 0.03 s, sys: 0.00 s, total: 0.03 s
 Wall time: 0.03 s
 10
 sage: g=graphs.RandomGNP(200,.5)
 sage: time g.clique_number(algorithm="networkx")
 CPU times: user 82.33 s, sys: 0.18 s, total: 82.52 s
 Wall time: 82.54 s
 11
 sage: time g.clique_number()
 CPU times: user 0.07 s, sys: 0.00 s, total: 0.07 s
 Wall time: 0.07 s
 11

 Anyway, from the practical point of view, it works now ;-)

 Nathann

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