igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] drawing a multishape graph


From: Tamás Nepusz
Subject: Re: [igraph] drawing a multishape graph
Date: Tue, 7 Jan 2014 12:44:37 +0100

How do you use visual_style later on? Also note that you have mistyped 
“circle”.  

--  
T.


On Tuesday, 7 January 2014 at 09:07, Ahmed Abdeen Hamed wrote:

> Hello friends,
>  
> I need to make my nodes displayed with different shapes:
>  
> I have this function:
>  
> def is_pmid(vertex):
> return vertex["name"].isdigit()
>  
>  
> visual_style["vertex_shape"] = ["square" if is_hashtag(vertex) else "cirlce" 
> for vertex in g.vs]
>  
> Only the if statement gets executed but not the else. A very similar code 
> snippet works if i used colors not shapes:  
>  
> visual_style["color"] = ["blue" if is_pmid(vertex) else "skyblue" for vertex 
> in g.vs]
>  
>  
> Any clue why this might be?
>  
> Thanks very much,
>  
> -Ahmed
>  
> _______________________________________________
> igraph-help mailing list
> address@hidden (mailto:address@hidden)
> https://lists.nongnu.org/mailman/listinfo/igraph-help






reply via email to

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