Please write it on the computer. Otherwise, it is hard to read. And also, please write explanations for each step. Thank you.
Given a randomly generated graph with 7 vertices, compute the shortest path from vertex 1 to vertex 7 using the Dijkstra algorithm. Please write the code in C.