Changes between Initial Version and Version 1 of Ticket #13730, comment 22


Ignore:
Timestamp:
06/08/13 06:13:00 (6 years ago)
Author:
slani
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #13730, comment 22

    initial v1  
    22
    33I tried with yield in iterator_out_nbrs (l:1745, c_graph.pyx) but it does not improve anything.
     4
    45{{{
    56sage: G = graphs.RandomBarabasiAlbert(100,2)
    67sage: %timeit E = [(u,v) for u in G for v in G.neighbor_iterator(u)]
    78625 loops, best of 3: 940 µs per loop
    8 }}}.
     9}}}
    910
    1011I did a lot of modification and testing (also tried with new function in cython which use yield for returning nbrs), but didn't improve anything.