added networkx dependency