[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[igraph] basic graph construction
From: |
Kurt J |
Subject: |
[igraph] basic graph construction |
Date: |
Tue, 20 Nov 2007 15:59:21 +0000 |
Hi List,
This is a very basic question i can't seem to figure out from the API
docs. I'm using the python interface to analyze a social graph. In
my data, each vertex is represented by an UID. I'm not clear how to
associate a UID w/ a vertex in igraph.
>>> g = igraph.Graph(directed=True)
>>> g.add_vertices(1)
Then how can i access that vertex object to add a UID attribute? Or
is there a better way?
Previously i was using networkx which had a nice syntax allowing each
node to be named as you want. But nx did not seem to scale well
enough...
Thanks,
Kurt J
- [igraph] basic graph construction,
Kurt J <=