The Shortest path demo demonstrates how to find the shortest path efficiently in both directed and undirected graphs.
Demo instructions
Click a node and hover over another one to see the shortest path between them. In Edit mode, double-click a blank paper area to create new nodes. Drag the text of nodes to create new edges.
Only available with the JointJS+ commercial license in the apps/ directory of your package. Don't have a license yet? Start a trial and use the source code of all our demos for free, with no strings attached, for 30 days.