NetworKit

You can convert a previously constructed NetworkX graph G into a NetworKit graph nkG with a call to one function.

 import​ ​networkit.nxadapter
 G = ... ​# Construct a NetworkX graph
 nkG = networkit.nxadapter.nx2nk(G)

Get Complex Network Analysis in Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.