
From:  Ahmed Abdeen Hamed 
Subject:  Re: [igraph] uploading a bipartite graph from a csv file 
Date:  Sun, 24 May 2015 21:19:27 0400 
> reader = csv.DictReader(open("bipartitetest.csv"), dialect="excel")
> g = igraph.Graph.DictList(vertices=None, edges=reader, directed=False)
>
> Now do I need to loop over the g.vs["type"] or there is a quicker way?
You need to produce a list of length g.vcount() where the ith element is True
or False and then simply say:
g.vs["type"] = your_list
T.
[Prev in Thread]  Current Thread  [Next in Thread] 