networkx python example code