跳到内容

[Deprecated]

mod.matrix() 已被重命名为 modularity_matrix(),以创建更一致的 API。

用法

mod.matrix(graph, membership, weights = NULL, resolution = 1, directed = TRUE)

参数

membership

数值向量,每个顶点一个值,社区结构的成员向量。

weights

如果不是 NULL,则为提供边权重的数值向量。

resolution

分辨率参数。必须大于或等于 0。将其设置为 1 以使用模块度的经典定义。

directed

是否使用有向或无向版本的模块度。对于无向图,将被忽略。