This post shows the some basic operation with the Python library Networkx in order to perform a network analysis.

First steps with Networkx
glowingpython.blogspot.com