#13503: Enhancement of `is_triangle_free' addition of `triangles_count' and a 
minor
change in `spanning_trees_count'
----------------------------------------------------------+-----------------
       Reporter:  azi                                     |         Owner:  
jason, ncohen, rlm
           Type:  enhancement                             |        Status:  
needs_work        
       Priority:  minor                                   |     Milestone:  
sage-5.4          
      Component:  graph theory                            |    Resolution:      
              
       Keywords:  triangles, graphs, number of triangles  |   Work issues:      
              
Report Upstream:  N/A                                     |     Reviewers:  
David Coudert     
        Authors:  Jernej Azarija                          |     Merged in:      
              
   Dependencies:                                          |      Stopgaps:      
              
----------------------------------------------------------+-----------------

Comment (by ncohen):

 HMmmm... I just read your tests, and did not get this one :

 {{{
 sage: %timeit G.is_triangle_free()
 5 loops, best of 3: 1.1 s per loop
 sage: %timeit (M^3).trace() > 0
 5 loops, best of 3: 1.04 s per loop
 sage: %timeit my_is_triangle_free(G)
 5 loops, best of 3: 63.8 ms per loop
 }}}

 Could it be that there would be another difference in runtimes if one
 requires the adjacency matrix to be *dense* ? `:-)`

 Nathann

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