title: Intersection of graphs in NetworkX
body: <p>I have 2 graphs and I would like to obtain a graph with their intersecting edges.
  If we have for instance:</p>
  
  <pre><code>import networkx as nx
  
  graph1 = nx.barabasi_albert_graph(100, 3)
  graph2 = nx.watts_strogatz_graph(100, 4, 0.15)
  nx.draw_networkx(graph1, with_labels=True)
  nx.draw_networkx(graph2, with_labels=True)
  </code></pre>
  
  <p>How could I find their intersection?</p>