practice for NetworkX