example of building a networkx graph out of json graph