i’ve managed to import networkx library (version 2.0.dev_20160927182259) into rhino6 and gh and implemented some of the codes to solve the route inspection problem from the very detailed tutorial from here:
Of course! i actually responded to a post afterwards describing the process.
I placed the networkx folder into C:\Program Files\Rhino 6\Plug-ins\IronPython\Lib\site-packages\networkxrkx , typed in _EditPythonScript command in Rhino, went into Options (under Tools tab) and added the same path. Let me know if it works if you happen to try it out. Thanks again for the help!
hi @timothytai
some years have passed, but I was wondering if you still have this file?
I am looking for a similar thing…
I have imported networkx library into rhino and gh, and this code into the pyhton component, but I am not sure what the args I should give.
(Like what should I connect to Destinations for example)
I was wondering if you still have it and could maybe share it so I can learn from what you have done?
As far as I understand, Hierholzer’s algorithm is one of several methods for constructing Eulerian circuits. I’ve never done so myself, nor checked which algorithm it implements, but one might implement the networkxmethod for computing these. It appears to be available in the old 1.5 version compatible with IronPython 2.7: