Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 8a2e50878ac50dcad74d71305f566f1d > files > 263

python-networkx-0.99-3mdv2010.0.noarch.rpm

#!/usr/bin/env python

import networkx
import time

# ubigraph server should already be running

G=networkx.UbiGraph()
G.add_node('a')
G.add_node('b')
G.add_edge('a','b','edge a-b')
G.add_edge('b','c')
G.add_edge('c','a')