There is no simple answer to this. People from the Facebook group may know something, but IMO is the best way to do this is to call the Gephi toolkit , i.e. An accessible jar, from jython, check here for an example use. The fact is that jython does not allow you to install numpy and a number of other libraries, but I think you could work around this problem by connecting the output of one script to another or using a queue such as Celery.
So, I would write a script to name it graph_construction.py , which uses networkx, build a graph and then write it to standard output in gexf. Then I will write a second script, gephi.py , which will execute things in gephi and let it say a graph in pdf, and then do something like:
python graph_construction.py | jython gephi.py output.pdf
and pray that it works.
source share