Generate some statistics with python networkx