Created
January 14, 2020 15:41
-
-
Save hasibul-hasan-shuvo/9b14e873ec543ec5aea21130894cef19 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for(int adjacentNode = 0; adjacentNode < nodeNumber; adjacentNode++){ | |
| if(!visitedNode[adjacentNode] && | |
| graph[minNode][adjacentNode] != INT_MAX && | |
| visitedCost[minNode] != INT_MAX && | |
| visitedCost[minNode] + graph[minNode][adjacentNode] < visitedCost[adjacentNode]) | |
| visitedCost[adjacentNode] = visitedCost[minNode] + graph[minNode][adjacentNode]; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment