improve pathgraph docstrings