8. Nick wants to visit some friend. Graph below represents distance to his friends. c. Nick...
8. Nick wants to visit some friend. Graph below represents distance to his friends. c. Nick decides to go visit Bob. Given the following additional data about the number of stations it takes to travel between each friend's house, use Dijks- tra's algorithm to find the shortest path from Nick' to the Bob' house. When answering this question you must show every step in your calculations, in- cluding your final fully-labelled graph. Nick Fil L e ? William Marta stations 2 edge stations edge stations edge stations edge e1 18 e59e9 7 13 9 e6 5 10 7 e 14 e3 8 e7 8 11 5 e4 2 eg 10 e12 9 ez Mark John Anna Bob a. Create the adjacency matrix for this graph, based on an appropriate ordering of the vertex set V. Hint: This may be easier if you re-label your vertices, for example: a Nick b William c Mark d Anna e Fil f Marta g John h Bob b. How many paths of length 4 exist from vertex n to vertex m in the above graph, where n and m are any two vertices in V?