> Not working though.

How about

if is_hashtag(vertex):
    vertex[“label”] = “”
else:
    vertex[“label”] = vertex[“name”]

Or, even better:

g.vs[“label”] = [“" if is_hashtag(vertex) else vertex[“name”] for vertex in 
g.vs]

T.

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

Reply via email to