[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [igraph] uploading a bipartite graph from a csv file

From: Tamas Nepusz
Subject: Re: [igraph] uploading a bipartite graph from a csv file
Date: Tue, 26 May 2015 10:24:20 +0200
User-agent: Mutt/1.5.23 (2014-03-12)

> Here is what I did
> type_list = []
> for vertex in g.vs:
> if vertex["name"].startswith("#"):
>   type_list.append(True)
>   else:
>   type_list.append(False)
> g.vs["type"] = type_list
How about this:

g.vs["type"] = [name.startswith("#") for name in g.vs["name"]]

> BTW: do you guys keep track of the citations for the sake of funds? I am
> happy to provide a list of my own citations unless of course you have
> Google Scholar notifies you.
We use Google Scholar for tracking citations. (At least I have an alert set up
in Google Scholar for the igraph publication).


reply via email to

[Prev in Thread] Current Thread [Next in Thread]