> reader = csv.DictReader(open("bipartite-test.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 i-th element is True
or False and then simply say:

g.vs["type"] = your_list

T.

_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help

Reply via email to