【发布时间】:2020-01-18 13:48:08
【问题描述】:
我有一个加权的无向图,其中有不重叠的社区。什么样的测量可以帮助我们找出相邻社区之间的距离?
R 代码如下:
library(igraph)
# Get a graph
my_graph <- graph("Zachary")
# Run community detection algorithm
my_cluster <- cluster_louvain(my_graph)
# Plot the graph
plot(g, vertex.color = my_cluster$membership)
示例:
在本例中,Blue 集群有 3 个相邻社区(Yellow、Green 和 Orange)。从视觉的角度来看,我确信:
黄色最接近蓝色
绿色与蓝色的联系较少
橙色显然与蓝色的联系最少...
但是有哪些测量方法可以量化这些?
【问题讨论】:
标签: r graph cluster-analysis igraph graph-theory