some scripts using the networkx module