Calculating the shortest path

Hello guy.. i was wondering if there is any function which given a range of number you can calculate the shortest path!!!!!!
The shortest path to what?
well i have several nodes and i want to find the shortest path.. each node is connected with some nodes!!!! but not with everyones..
So your saying you basically have a tree and you want to find the shortest branch of nodes from the root?
No i have n nodes each node has connectivity with other nodes... and i enter two nodes source and destiny, base on these two nodes i need to find the shortest path if it exists.. if not i have to say that there is no path available
Topic archived. No new replies allowed.