Libove Blog

Personal Blog about anything - mostly programming, cooking and random thoughts

graph-force: Python library for embedding large graphs in 2D space, using force-directed layouts

I've published my graph embedding library graph_force on GitHub and PyPi. I wrote about the process of building this a few days ago.

My own algorithm turned out to be quiet slow when compared to networkx. For this reason I also reimplemented the networkx algorithm, but with multithreading support. The most important feature for me was the ability to load the graph from a binary file. While networkx used to much data while ingesting the graph data, I can effortlessly write it to file and load it in graph_force.

At the moment this library fulfils my needs, but with publishing I commit to maintaining it. Maybe this is useful to someone else.