igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Examples about layouts


From: Tamas Nepusz
Subject: Re: [igraph] Examples about layouts
Date: Wed, 15 Oct 2008 15:57:33 +0100

How can I plot vertices of different degree with different sizes? (the
higher the bigger)
You can set the vertex sizes via either passing a list as the value of the vertex_size keyword argument of plot(), or using the "size" attribute of the vertices:

g=Graph.GRG(100, 0.2)
plot(g, vertex_size=g.degree())

OR

g=Graph.GRG(100, 0.2)
g.vs["size"] = g.degree()
plot(g)

See the following URL for details on the keyword arguments that plot() accepts:
http://cneurocvs.rmki.kfki.hu/igraph/doc/python/igraph.Graph-class.html#__plot__

--
T.





reply via email to

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