如何计算igraph中具有多个值的顶点的共生性?

时间:2015-04-16 18:25:54

标签: r igraph

我试图通过像group这样具有多个值的顶点标签来计算兼容性: 我知道如何根据像性别这样的标签顶点来计算assortativity.nominal

assortativity.nominal(graph,types=factor(V(graph[[g]])$gender),directed=TRUE)

但如何计算像团体或教育这样的标签?

vertex  group                               education
  1      ["1105460"]                        ["1105460"]                  
  2      ["2301561","278628"]               ["2301561","278628"]
  3      ["6002301","1105460","1382948"]    ["6002301","1105460","1382948"]   
  4      ["6002301","278628","1105460"]     ["6002301","278628","1105460"]

0 个答案:

没有答案