title: AttributeError: module 'networkx' has no attribute 'Graph' in vs code
body: <p>I installed networkx module for python in windows and tried running a simple program on it using vs code. But when tried to run it says "AttributeError: module 'networkx' has no attribute 'Graph'". Not just Graph, if I use other networkx function it still says that networkx doesn't have that particular attribute. I face this problem in vs code only because when running it on IDLE it works fine. Please help</p>
  
  <p>Here is my code: </p>
  
  <pre><code>import networkx as nx
  import matplotlib.pyplot as p
  
  G = nx.Graph()
  G = nx.complete_graph(10)
  nx.draw(G)
  p.show()
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code> Traceback (most recent call last):
   File "c:/Python programs/networkx.py", line 1, in &lt;module&gt;
      import networkx as nx
    File "c:\Python programs\networkx.py", line 4, in &lt;module&gt;
      G = nx.Graph()
   AttributeError: module 'networkx' has no attribute 'Graph'
  </code></pre>