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:13 PMViews:

HTML view:
Copy Source | Copy HTML
  1. import igraph as ig
  2. t = time.time();
  3. layout = G.layout("drl");
  4. logging.debug("compute %.4f sec %d Mb" % ((time.time()-t), memory_usage() / 1024) );
  5. t = time.time();
  6. ig.plot(G, "igraph.png",
  7.         layout = layout,
  8.         bbox=(5000,5000),
  9.         edge_arrow_size=0.5,
  10.         edge_arrow_width=0.5,
  11.         edge_width=0.1,
  12.         vertex_size=2,
  13.         vertex_color='red',
  14.         vertex_label_size=5,
  15.         vertex_label=node_names);
  16. logging.debug("draw %.4f sec %d Mb" % ((time.time()-t), memory_usage() / 1024) );

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