Mercurial > public > think_complexity
diff ch5ex7.py @ 38:d876711b88b5
Comment out the calculation of L as it may take a long time.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 10 Jan 2013 20:24:56 -0600 |
parents | 931f60dee99e |
children |
line wrap: on
line diff
--- a/ch5ex7.py Thu Jan 10 20:23:52 2013 -0600 +++ b/ch5ex7.py Thu Jan 10 20:24:56 2013 -0600 @@ -56,11 +56,13 @@ print 'Calculating clustering coefficient...' c = g.clustering_coefficient() print 'c =', c - print 'Setting edge lengths...' - g.set_edge_length(1) - print 'Calculating characteristic length L...' - l3 = g.big_l3() - print 'L =', l3 + + # This may take a looong time...... + #print 'Setting edge lengths...' + #g.set_edge_length(1) + #print 'Calculating characteristic length L...' + #l3 = g.big_l3() + #print 'L =', l3 print 'Plotting data...' pyplot.clf()