|
From: | Tamás Nepusz |
Subject: | Re: [igraph] calculating the number of edges on the boundary of S |
Date: | Thu, 27 Nov 2014 11:06:26 +0100 |
Hi, 1. assign an edge weight of 1 to each edge 2. Use contract.vertices with the membership vector of your community structure to contract each community to a single vertex. Then simplify the graph and tell igraph to sum the edge weights when it merges multiple edges into a single one during simplification. 3. The edge weights in the contracted graph will tell you rhe number of edges between the communities in the original graph. T.
|
[Prev in Thread] | Current Thread | [Next in Thread] |