Skip to main content

FindPath

FindPath[g,s,t] finds a path between vertex s and vertex t in the graph g.

FindPath[g,s,t,k] finds a path of length at most k between vertex s and vertex t in the graph g.

FindPath[g,s,t,{k}] finds a path of length exactly k.

FindPath[g,s,t,{kmin,kmax}] finds a path of length between kmin and kmax.

FindPath[g,s,t,kspec,n] finds at most n paths.

FindPath[{v->w,…},…] uses rules v->w to specify the graph g.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.