Source Code for Me (s-c.me)

Allows you to paste souce code to blogs! Adapted for Twitter! Here is Search Form in case you missed your code.
Tags: TSQL, Created At: 10/24/2016 8:08:12 PMViews:

HTML view:
Copy Source | Copy HTML
  1. import matplotlib.pyplot as plt
  2. import networkx as nx
  3. plt.figure( figsize=(50,50) );
  4. t = time.time();
  5. nx.draw_random(
  6.            G,
  7.            node_size=1,
  8.            width=0.1,
  9.            font_size=6,
  10.            alpha=0.5,);
  11. logging.debug("compute %.4f sec %.2f Mb" % ((time.time()-t), memory_usage()/1024) );
  12. plt.savefig('networkx');

Based on Manoli.Net's CodeFormatter. Made by Topbot (c) 2008-2017