cdlib.algorithms.condor

cdlib.algorithms.condor(g_original: object) BiNodeClustering

BRIM算法用于二分社区结构检测。 适用于加权和无权图。

支持的图表类型

无向

有向

加权

二分图

是的

是的

是的

Parameters:

g_original – 一个 networkx/igraph 对象

Returns:

BiNodeClustering 对象

Example:

>>> from cdlib import algorithms
>>> import networkx as nx
>>> G = nx.algorithms.bipartite.random_graph(50, 50, 0.25)
>>> coms = algorithms.condor(G)
References:

Platig, J., Castaldi, P. J., DeMeo, D., & Quackenbush, J. (2016). eQTLs的双边社区结构。 PLoS计算生物学, 12(9), e1005033.

注意

参考实现:https://github.com/genisott/pycondor