title: Bus Route Program,What kind of algorithm and data-structure do I use?
body: <p>I have a question about Java algorithm of one program. I want to write an android program that provides information about "bus route". Program is worked that user selects one bus station(A station) and program says to user "take the bus number 4,and take off B station.And take the bus number 8 then take off C station." Anyone has an idea about that programs algorithm? What can I use for saving each bus route? <code>Queue</code>, <code>stack</code> or someting like that?  Can I use <code>BFS</code> or <code>DFS</code> algorithm for shortest bus route path?  </p>
  
  <p><code>Purpose of program;</code> How can user finds the transportation route with using Bus. (Bus number 4 does not go to the station 8 directly,user needs transfer to station B)</p>
  
  <p><code>I need to know ;</code> Which data structure and which shortest path algorithm do I use.</p>
  
  <p><img src="https://i.stack.imgur.com/CILdi.jpg" alt="Thats a question&#39;s image that explaining above "></p>