non_neighbors#

non_neighbors(graph, node)[源代码]#

返回图中节点的非邻居。

参数
graph网络X图表

用图形查找邻居。

node结点

其邻居将被返回的节点。

返回
non_neighbors迭代器

图中不是节点邻居的节点的迭代器。