srizdebnath/tigergraphskills/algo-all-pairs-shortest-path
Claude Code and agent skill by srizdebnath/tigergraphskills
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Install and run All-Pairs Shortest Path in GSQL. Use when calculating routing matrix tables across all vertices.
Install
npx vskill@latest install srizdebnath/tigergraphskills/algo-all-pairs-shortest-pathSKILL.md
The same SKILL.md was published earlier as srizdebnath/tigergraphskills/algo-all-pairs-shortest-path.
Running All-Pairs Shortest Path (APSP)
When to use this
Use when calculating distances between all pairs of nodes to build path matrices, or computing network diameter.
Prerequisites
TigerGraph GSQL Algorithm Library installed. Links:
Steps
- Compile the APSP query.
- Run the query:
``gsql RUN QUERY tg_shortest_apsp(v_type="User", e_type="friend", wt_attr="weight", print_accum=FALSE, file_path="/tmp/apsp.csv") ``
- Due to large output size, outputting to a file is highly recommended.
Common mistakes
- Printing APSP output directly to the console on graphs with more than 1,000 vertices. The response size is O(V^2) and will crash the web server.
- Running APSP on large production instances, as it is extremely resource intensive.
Sources
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/algo-all-pairs-shortest-path/SKILL.md
Popularity
- 7-day trend score
- 5
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/srizdebnath/tigergraphskills/algo-all-pairs-shortest-path)