How we can set the intermediate node

i want to set the intermediate node in my routing process and the routing algorithm return the path which is contained that defined node as like as graphhopper site.

Can i have your kind assistance to help how can i set the intermediate node?

Do you mean via points to force A to B to C? You just add more points: new GHRequest().addPoint