Shortestpath
An interactive HTML5 canvas graph that shows the shortest path between any two nodes.
Install / Use
/learn @lettier/ShortestpathREADME

Shortest Path
An interactive HTML5 canvas graph where the edge weights are the euclidean pixel distance between any one edge's incident nodes. Upon selecting a source node and a terminal node, you can see the shortest path (if a path does exist) between them by pressing Begin. Dijkstra's algorithm is used to compute the shortest path. To see the shortest path between any other two nodes, press Reset. For a whole new graph, press New Graph.
./source/canvas_version contains the latest version utilizing only the HTML5 canvas object and no other third-party libraries.
./source/fabric_js_version contains the original version that uses the Fabric.js canvas library. Note that Fabric.js 1.4.0 is needed.
Playable at http://www.lettier.com/shortest_path/.
(C) 2014 David Lettier.
http://www.lettier.com/
Related Skills
node-connect
352.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
