Lang:GCC
Edit12345678910111213141516171819202122232425262728293031#include <stdio.h>#include <string.h>#include <malloc.h>typedef struct{char infi; //if distance to start node is infinityint dist; //distance to start nodeint p; //precusor nodeint selected;}Node;typedef struct{int i;int j;int w;}Edge;//int **adj; //adjacent matrixEdge *ed; //edgesNode *nodes;void initialize(int n, int m, int s);int findMin(int n);void relaxAll(int m, int u);void relax(int u, int v, int w);int main(){int N,M,S,T;int i;scanf("%d%d%d%d", &N, &M, &S, &T);int sets[N];