Guest User

Untitled

a guest
Jan 19th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. s = 1;
  2. t = 16;
  3. g = GridGraph[{4, 4}, VertexSize -> {s -> Medium, t -> Medium}]
  4.  
  5. path=FindPath[g, s, t, {GraphDistance[g, s, t]}, All]
  6.  
  7. HighlightGraph[g, PathGraph[#]] & /@ path
Add Comment
Please, Sign In to add comment