| Algorithm 1 The Generation of Minimum Routing Graph |
|
Input: the link cost matrix , the network size N Output: the shortest path set 1. for I = 1:N 2. Calculate the initial shortest path of node i by Dijkstra algorithm. 3. update 4. Find the set of adjacent nodes of the shortest path . 5. k = 1 // Start finding adjacent nodes from the first node of . 6. while () 7. Insert adjacent nodes from the kth node of , and get the candidate path under the current k. 8. update 9. k = k + 1 10. end // Get the candidate path set . 11. g = 2 12. while () 13. Calculate the link cost by Equation (6). 14. if 15. update 16. end 17. g = g + 1 18. end 19. end 20. return the shortest path set |