networkx

Comprehensive toolkit for creating, analyzing, and visualizing complex networks and graphs in Python.