I am trying to implement this algorithm in C. https://en.wikipedia.org/wiki/Dijkstra%27s_algorithm#Pseudocode
By using the following structs:
typedef Linke