Skip to content

Instantly share code, notes, and snippets.

@mjbommar
Created August 8, 2009 15:25
Show Gist options
  • Save mjbommar/164433 to your computer and use it in GitHub Desktop.
Save mjbommar/164433 to your computer and use it in GitHub Desktop.
'''
Created on Aug 8, 2009
@author: Michael Bommarito II
@contact: [email protected]
'''
import igraph
from igraph2sonia import igraph2sonia
g = igraph.Graph.Lattice([20,20])
t = 0
for t,v in enumerate(g.vs):
v["time"] = t
igraph2sonia(g, 'example1.son')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment