def non_edges(graph):
    if graph.is_directed():
        for u in graph:
            for v in non_neighbors(graph, u):
                yield (u, v)
    else:
        nodes = set(graph)
        while nodes:
            u = nodes.pop()
            for v in nodes - set(graph[u]):
                yield (u, v)
If the message passed to L{callDeprecated} doesn't match,
dataset/ETHPy150Open networkx/networkx/networkx/classes/function.py/non_edges--crossover with--dataset/ETHPy150Open nlloyd/SubliminalCollaborator/libs/twisted/trial/test/test_assertions.py/TestCallDeprecated.test_callDeprecationWithWrongMessage