[Top][All Lists]

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

Re: [igraph] turning on/off label property

From: Ahmed Abdeen Hamed
Subject: Re: [igraph] turning on/off label property
Date: Sat, 25 Jan 2014 14:16:19 -0500

That was mean clever, and I am having so much fun with this!

Thanks very much!!!


On Sat, Jan 25, 2014 at 2:00 PM, Tamás Nepusz <address@hidden> wrote:
> Not working though.

How about

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

Or, even better:

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


reply via email to

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