title: How check if there is intersection of any two edges given the fixed nodes positions, assuming the edges are drawn as straight lines with networkx?
body: <p><strong>What I want?</strong></p>
  <p>I want to check if there is any interscions beteewn edges in my graph. I have a graph with a lot of vertices and edges.</p>
  <p>Here is a simple graph for example:</p>
  <pre><code>    G = nx.Graph().to_undirected()
      G.add_nodes_from(pos)
      G.add_edge(1, 3, weight=1)
      G.add_edge(2, 4, weight=1)
      G.add_edge(2, 3, weight=1)
      nx.draw_networkx(G, with_labels=True, pos=pos)
      plt.show()
  </code></pre>
  <p><a href="https://i.stack.imgur.com/ZLqan.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ZLqan.png" alt="Graph" /></a></p>
  <p><strong>What I have tried?</strong></p>
  <p>I already tried to use</p>
  <pre><code>    print(nx.check_planarity(G, False))
  </code></pre>
  <p>but because there is an option to draw this graph as a planar graph, the return value is True</p>
  <p><strong>How can I check</strong> if there are edge interscions in my graph?
  assuming the position is fixed and the edges are drawn as straight lines</p>