ericmjl/Network-Analysis-Made-Simple

Unrequited love solution

end0 opened this issue · 1 comments

end0 commented

links = ((n1, n2) for n1, n2, d in G.edges(data=True))
reverse_links = ((n2, n1) for n1, n2, d in G.edges(data=True))

list(set(links) - set(reverse_links))

Cited in notebooks!