#12362: Improvement of GNP generators for graphs and digraphs
----------------------------+-----------------------------------------------
   Reporter:  dcoudert      |          Owner:  jason, ncohen, rlm         
       Type:  enhancement   |         Status:  needs_review               
   Priority:  minor         |      Milestone:  sage-5.0                   
  Component:  graph theory  |       Keywords:  directed graphs, generators
Work_issues:                |       Upstream:  N/A                        
   Reviewer:                |         Author:                             
     Merged:                |   Dependencies:                             
----------------------------+-----------------------------------------------
Changes (by dcoudert):

  * status:  new => needs_review


Comment:

 I have changed the status from new to need_review.

 Without this patch
 {{{
 sage: %timeit digraphs.RandomDirectedGNP(1000,0.001)
 5 loops, best of 3: 2.58 s per loop
 sage: %timeit networkx.random_graphs.directed_gnp_random_graph(1000,0.001)
 5 loops, best of 3: 2.08 s per loop
 }}}

 With this patch
 {{{
 sage: %timeit digraphs.RandomDirectedGNP(1000,0.001)
 5 loops, best of 3: 26.6 ms per loop
 }}}

 This patch could be used for undirected graphs, but the networkx
 implementation is competitive.

 Waiting for your feedback.

 D.

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