General purpose graph library for python

I need to determine a longest-path through a set of connected vertices. I was looking for something like graph-tool but I don’t want to introduce any new dependencies.

Is there a python library already available to work with networks like this?

https://networkx.github.io/