I'm working on a sensor networking problem. I have a vector with the index of the nodes (in an n x n matrix) that should be connected. I also have an n x n matrix for the weighted edges between the connected nodes. First I would just like to see if a path exists between a root node and the end. Eventually, I will need to find the shortest path deterministically. Can anybody help with this problem? There was no subtopic area for Matlab programming.