heap.c
struct MinHeapNode *newMinHeapNode(int v, int dist) {
    struct MinHeapNode *minHeapNode = (struct MinHeapNode *)malloc(sizeof(struct MinHeapNode));
    minHeapNode->v = v;
    minHeapNode->dist = dist;
    return minHeapNode;
}
// Structure to represent a min heap node
Structure to represent a min heap node
Structure to represent a min heap node
struct MinHeapNode *newMinHeapNode(int v, int dist) {
    struct MinHeapNode *minHeapNode = (struct MinHeapNode *)malloc(sizeof(struct MinHeapNode));
    minHeapNode->v = v;
    minHeapNode->dist = dist;
    return minHeapNode;
}
struct MinHeapNode * newMinHeapNode ( int v , int dist ) { struct MinHeapNode * minHeapNode = ( struct MinHeapNode * ) malloc ( sizeof ( struct MinHeapNode ) ) ; minHeapNode -> v = v ; minHeapNode -> dist = dist ; return minHeapNode ; }
Structure to represent a min heap node
Structure to represent a min heap node