node_clique_number#

node_clique_number(G, nodes=None, cliques=None, separate_nodes=False)[源代码]#

返回包含每个给定节点的最大最大集团的大小。

Returns a single or list depending on input nodes. An optional list of cliques can be input if already computed.

参数
G网络X图表

无向图。

cliques列表,可选(默认=无)

A list of cliques, each of which is itself a list of nodes. If not specified, the list of all cliques will be computed using find_cliques().

返回
INT或DICT

如果 nodes 是单个节点,则返回 G 包含该节点的。否则,将以节点为关键字的dict返回到包含该节点的最大最大集团的大小。

参见

find_cliques

FIND_CLIQUES产生G的最大团。它接受一个 nodes 将考虑限制到包含所有给定对象的最大派系的论点 nodes 。针对集团的搜索进行了优化 nodes