我使用R。
中的walk.trap函数从图表中提取了社区com <- walktrap.community(g2)
现在,我想从每个社区获取顶点,以便比较不同时间范围的社区
例如,如果我写了com[1]
,我会得到第一批社区成员的列表,但我无法从列表中获取个人
com[1]
$`1`
[1] "Siqiang Luo" "Yifeng Luo"
[3] "Shuigeng Zhou" "Gao Cong"
[5] "Shanshan Feng" "Xuefeng Chen"
[7] "Yifeng Zeng" "Yeow Meng Chee"
[9] "Muthukumaran Chandrasekaran" "Prashant Doshi"
[11] "Kenneth Bogert" " Yifeng Luo"
[13] " Gao Cong" " Jihong Guan"
[15] " Xuefeng Chen" " Yifeng Zeng"
[17] " Yeow Meng Chee" " Yanping Xiang"
[19] " Prashant Doshi" " Yingke Chen"
请帮忙吗?