[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [igraph] : edges and clusters
From: |
Gábor Csárdi |
Subject: |
Re: [igraph] : edges and clusters |
Date: |
Fri, 5 Dec 2014 15:53:53 -0500 |
On Fri, Dec 5, 2014 at 3:51 PM, Chris Watson <address@hidden> wrote:
> 1. clusters(g)
> 2. Probably something like:
>
> cl <- clusters(g)$membership
> edges12 <- E(g)[which(cl == 1) %--% which(cl == 2)]
>
> Although I don't think there should be any edges between them; otherwise
> they would be part of the same connected component. The code I list above is
> what I use to determine edges between communities.
Right. A small correction is that you can have edges between strongly
connected components in directed graphs.
Gabor
[...]