Tour of central japan

Dear all

If we are planning a 7 days tour to these few places , can you advise which mode of transport is better . Bus or the train pass.

Day 1 . Nagoya

Day 2. Gujo hachiman stay 2 nights

Day 3. Takayama stay 3 nights

Day 4. Toyama stay 2 nights

Day 5. Back to nagoya.

Should I buy the bus or train pass.