cdlib.viz.plot_com_properties_relation¶
- cdlib.viz.plot_com_properties_relation(com_clusters: object, com_fitness_x: Callable[[object, object, bool], object], com_fitness_y: Callable[[object, object, bool], object], **kwargs: dict) object¶
绘制聚类中两个属性/适应度函数之间的关系
- Parameters:
com_clusters – 要分析的聚类(单个聚类或聚类列表)
com_fitness_x – 第一个健身/社区属性
com_fitness_y – 第一个适应度/社区属性
kwargs – seaborn lmplot 的参数
- Returns:
一个 seaborn lmplot
示例:
>>> from cdlib import algorithms, viz, evaluation >>> import networkx as nx >>> g = nx.karate_club_graph() >>> coms = algorithms.louvain(g) >>> coms2 = algorithms.walktrap(g) >>> lmplot = viz.plot_com_properties_relation([coms,coms2],evaluation.size,evaluation.internal_edge_density)