> 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).
T.
_______________________________________________
igraph-help mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/igraph-help