Restructuring the network exploration functionality for networkx