Modify routing algorithm

Hi,
I am new to graphhopper. I want to modify the routing algorithm in the the public transit part. What I have done is, used the OSM.PBF of a local area and the gtfs data of same area to generate routes. But now I have to modify this algorithms to show selected routes from gtfs. How should I do this?

I am working on intelij currently.