Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

# FIND ALL THE POSSIBLE PATHS BETWEEN A START AND AN END NODE OF A GRAPH 1.0

Date Added: June 13, 2013  |  Visits: 384

In Graph Theory it is often required to find out all the possible paths, which can exist between a source node and a sink node.So this function returns a all such possible paths, in a matrix format.INPUTS:1. 'X' Matrix: Form a Nx2 matrix, where N is the total number of 'Edges'. This Matrix will contain all the edges of the graph in the form of 'From Node' to 'To Node' fashion.2. StartNode: Specify the Start or the Source Node.3. EndNode: Specify End or the Sink Node.Type: "PathFinder(X, StartNode, EndNode)" in the command window. Press Enter. An OUTPUT matrix will be generated where all the possible paths between the Source to Sink Node will be shown 'Row Wise'. A '0' will appear in row as an element to signify a blank space. Note: The main Limitation of this function is that, as the total number of node increases, the execution time also increases. The total number of nodes is also limited to 20, due to memory considerations. I am still working on this, so any kind of suggestions/advice from your side will be highly appreciated.

 Requirements: No special requirements Platforms: Matlab Keyword: All Such,  All The,  Am Still,  Appear In,  As An,  As The,  Between The,  Due,  Element,  Generated,  Highly,  Increases,  Kind,  Limited,  Matrix,  Node,  Output,  Row Wise,  Shown Users rating: 0/10