problems importing a module (networkx) in pycharm

Hello,
I am trying to import the module networkx in pycharm. The import itself works but I cannot use the module:

import networkx as nx
g = nx.Graph()

The same code works fine in Idle.
When I check under stettings the imported libraries, networkx is listed.
Any ideas?
Thanks in advance,
F.

Please sign in to leave a comment.