removed networkx dependency

Not actually needed. Might as well use builtin types