[Top][All Lists]

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

Re: [igraph] Re: plotting_clusters_on_a_graph

From: Tamas Nepusz
Subject: Re: [igraph] Re: plotting_clusters_on_a_graph
Date: Tue, 31 Aug 2010 09:39:48 +0100

> I found a code in igraph manual given below. Is there a way to make the nodes 
> of the same color come closer to each other on the graph layout?
Yes, but you have to do that on your own. Basically, you take the graph layout, 
then you calculate the center of mass for each cluster and adjust the 
coordinates of each vertex in the cluster towards the center of mass. It's  
basic coordinate geometry. If you wish, you can create a helper function for 


reply via email to

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