NetworkX: passing the graph instance

8 views
Skip to first unread message

MUHAMMAD WAQAS SWATI

unread,
Aug 2, 2022, 8:02:06 AM (7 days ago) Aug 2
to networkx-discuss
Hi NetworkX experts, I have a very simple graph created in networkX.
It has 2 nodes and 1 link.

I want to pass the instance of this graph to a function somewhere in my code say def mymodel():

Please help me to get out of this.
Reply all
Reply to author
Forward
0 new messages