ArangoDB offers the adbnx_adapter, which lets you pull the graph in question directly into a nx.MultiDiGraph.
Networkx also supports the Louvain algorithm