non_neighbors#

non_neighbors(graph, node)[来源]#

返回图中节点的非邻居。

参数:
graphNetworkX 图

要查找邻居的图。

node节点

将返回其邻居的节点。

返回:
non_neighbors集合

图中不是该节点邻居的节点集合。