Added networkx as dependency