I just tried to get this going in R6, but ran into the decorators issue. Tried it with the latest version of networkx
Rhino Version 6 SR8
Was there a solution to the “decorators” issue?
EDIT: I was able to get this working: Steps were as follows:
Downloaded networkx from github.
Extracted the networkx folder and placed it here C:\Program Files\Rhino 6\Plug-ins\IronPython\Lib.
Added the folder/module pkg_resources and the python file decorator.py.
Not sure if this is breaking anything else yet…but its working for me.
I am attaching the zipped files that worked for me, in case you are missing anything.
Unblock and Extract contents to C:\Program Files\Rhino 6\Plug-ins\IronPython\Lib
I don’t know all the ins and outs of this module, but in reference to the required dependencies, it only REQUIRES decorator. The Optional modules of Numpy/Scipy/Panda/etc are not required. Granted, I don’t know what networkx functions will not work a result of not having those optional items.
networkx_Rhino6SR8.zip (1.2 MB)
Thank you @AndersDeleuran for sharing your use of networkx!