how to use networkx library in python

to solve the count the import pairs problem in python I have used netwrokx module but the code submission is failing with run time error causing NZEC…

any one please help how can I resolve this issue.

how can I include libraries (like: networkx) in my python code.

networkx module is not a part of the Standard Python Library, so you can’t use it here on Codechef.
Only the ones listed here can be imported by using import module-name statement.