Update path-graph.js