I need to use this. I am getting confused with the input form that should be given.
I have 4 simple nodes.
1 2 3 4
1->2: weight = 10
1->3: weight = 20
2->4: weight = 30
3->4: weight = 40
i need to find path from 1 to 4.
Can you tell me how to give input.
I have a database with nodes en segments but the segments must be calculated before they can be added to the algorithm. I have a query wich calculates all the posible segments from one specific node to other nodes.
Is it possible to calculate the needed segments during the algorithm? In that case i don't have to calculate all the possible segments for the whole database (16,000 nodes with about 2,450,000 segments)
I have a need, wherein there are multiple nodes spread across. All I know is the location of each nodes. How do I find the best path from all nodes to a particular node?
Can I use the "Dijkstra's Shortest Path Algorithm"? Believe, its YES.
I am not sure, as how do I populate the variable, “segments” in program.
Appreciate an earlier response on this. Would be great, if you could give a code snippet as well.