Reduce usage of sys::Path in the graph writer.

Now PathV1.h is not needed in GraphWriter.h.