igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] Clusters in Graph


From: Tamas Nepusz
Subject: Re: [igraph] Clusters in Graph
Date: Mon, 2 Nov 2009 15:51:22 +0000
User-agent: Mutt/1.5.17 (2007-11-01)

Hi Surendar,

If you are looking for the connected components of a graph, check the
help page for the following commands:

> ?clusters
> ?decompose.graph

"clusters" will give you a numeric vector which contains N elements (N
is the number of nodes in your graph). Each element of this vector is
the cluster index of the corresponding node; nodes in cluster X will
have X in the corresponding position in the membership vector.

"decompose.graph" will take the original graph and return a list of
graphs, each corresponding to one component of your original graph.

-- 
Tamas




reply via email to

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