test multiple networkx versions