igraph-help
[Top][All Lists]
Advanced

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

Re: [igraph] calculating the number of edges on the boundary of S


From: Fatemeh a
Subject: Re: [igraph] calculating the number of edges on the boundary of S
Date: Sat, 29 Nov 2014 11:40:39 +0330

Thank you so much Tamas.
sorry for not checking it twice!
Regards,
fatemeh

On Fri, Nov 28, 2014 at 10:51 PM, Tamas Nepusz <address@hidden> wrote:
> after the steps you explain to me ,I use the graph.strength()  to get the
> number of edges pointed out for each community, But I was wondering is it
> any way to assign  the id of each vertex  in the contracted graph exactly
> the membership number of the community in the original graph.
This is exactly what happens if you use contract.vertices() with the membership
vector. contract.vertices() expects a vector that tells the "new" ID of each
vertex after the contraction. So, if the value belonging to a certain vertex in
the membership vector is X, then the vertex will be merged into the "new" node
with ID=X in the contracted graph.

Best,
T.

_______________________________________________
igraph-help mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/igraph-help



--
regards
F..A

reply via email to

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