R/community.R
optimal.community.Rd
optimal.community() 已重命名为 cluster_optimal(),以创建更一致的 API。
optimal.community()
cluster_optimal()
optimal.community(graph, weights = NULL)
输入图。 它可以是无向图或有向图。
边的权重。 它必须是正数值向量、NULL 或 NA。 如果它是 NULL 并且输入图具有“weight”边属性,则将使用该属性。 如果为 NULL 并且不存在此类属性,则边将具有相等的权重。 如果该图是 “weight” 边属性,但您不想将其用于社区检测,请将其设置为 NA。 较大的边权重意味着此函数的连接更强。
NULL
NA