PathCost and PathVertex structs changed to Vertex private parts