Skip to content

Networkx's touch return False while 2 polygons share some edges #7413

Closed Answered by nmcdtu
nmcdtu asked this question in Q&A
Discussion options

You must be logged in to vote

I replaced touches with intersects, and as far as I see, everything worked as expected!

G.nodes(data=True)[0]["polygon"].intersects(G.nodes(data=True)[1]["polygon"])  # return True

Thank you very much!

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@nmcdtu
Comment options

@nmcdtu
Comment options

Answer selected by nmcdtu
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants