networkx.classes.function.non_edges

non_edges(graph)[source]

Returns the non-existent edges in the graph.

Parameters

graph (NetworkX graph.) – Graph to find non-existent edges.

Returns

non_edges – Iterator of edges that are not in the graph.

Return type

iterator