There are so many community detection algorithms, which is better?
Yonatan Lupu 写道:
Actually, I'm not sure what the difference is exactly.
For some reason, it seems I needed to use both of them to get the
results in the format I needed. Good luck!
On Wed, Nov 18, 2009 at 12:14 AM, Zhijiang
Wang <address@hidden>
wrote:
Thank you very much!!!
It's OK!
Would you like to tell me the differences between cbind and as.matrix?
Yonatan Lupu 写道:
Sorry - there is a minor error below. The fourth
line
should be:
names<-array(V(x)$name)
Zhijiang,
Suppose x is your graph. You can create an object that includes the
IDs of your nodes and the communities they are in as follows:
y <- fastgreedy.community(x, merges=TRUE)
z<-which.max(fc$modularity)
fc<- community.to.membership(x, y$merges,z)
names<-array(V(jg3)$name)
community<-array(fc$membership)
result<-as.matrix(cbind(names,community))
-Yon
2009/11/17 Zhijiang Wang <address@hidden>
Dear all,
How to see communities after community detection algorithm?
Or I want to see which set of nodes each community contains.
--
Best wishes,
Zhijiang Wang
--------------------------------------------
PHD Student
Room 212, Science buliding,
The International WIC Institute,
College of Computer Science and Technology,
Beijing University of Technology,
Beijing, China.
_______________________________________________
igraph-help mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/igraph-help
--
Yonatan Lupu, J.D.
Doctoral Student, Political Science
University of California, San Diego
http://dss.ucsd.edu/~ylupu/
--
Best wishes,
Zhijiang Wang
--------------------------------------------
PHD Student
Room 212, Science buliding,
The International WIC Institute,
College of Computer Science and Technology,
Beijing University of Technology,
Beijing, China.
--
Yonatan Lupu, J.D.
Doctoral Student, Political Science
University of California, San Diego
http://dss.ucsd.edu/~ylupu/
--
Best wishes,
Zhijiang Wang
--------------------------------------------
PHD Student
Room 212, Science buliding,
The International WIC Institute,
College of Computer Science and Technology,
Beijing University of Technology,
Beijing, China.
|