Testing the NetworkX libraries