Refactoring some functions.

- move some function in PatchRoadGenerator to GraphUtil or
RoadGeneratorHelper.