igraph-help
[Top][All Lists]
Advanced

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

[igraph] turning on/off label property


From: Ahmed Abdeen Hamed
Subject: [igraph] turning on/off label property
Date: Sat, 25 Jan 2014 13:52:21 -0500

Hello everyone,

How can I show the labels of some vertices not all of them?

I wrote this function to ignore labeling hashtags and only label all other nodes


def name_on(vertex):
if is_hashtag(vertex):
g.vs["label"] = ""
else:
g.vs["label"] = vertex["name"]


Not working though.


Any clue?

Thanks very much,

-Ahmed

reply via email to

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