I know this is Dijkstra\'s algorithm but I am not able to figure out the role of IsGood.
IsGood
Input: Undirected graph G=(V;E) with e
G=(V;E)