Page 52 - Algorithms Notes for Professionals
P. 52

t.dijkstra(graph, 0);
           }
       }

       Expected output of the program is


       Vertex   Distance from Source
       0                0
       1                4
       2                12
       3                19
       4                21
       5                11
       6                9
       7                8
       8                14







































































       colegiohispanomexicano.net – Algorithms Notes                                                            48
   47   48   49   50   51   52   53   54   55   56   57