some contract changes, using networkx graph now.