networkx

Python package for creating and manipulating graphs and networks

Here are some articles that you may find helpful