srizdebnath/tigergraphskills/algo-closeness
Claude Code and agent skill by srizdebnath/tigergraphskills
- community
Checking that the SKILL.md file is still in the repository.
Install and run Closeness Centrality in GSQL. Use when measuring how close a vertex is to all other vertices in a network.
Install
npx vskill@latest install srizdebnath/tigergraphskills/algo-closenessSKILL.md
The same SKILL.md was published earlier as srizdebnath/tigergraphskills/algo-closeness.
Running Closeness Centrality
When to use this
Use when measuring the time or distance it takes to spread information from a specific node to other nodes, such as resource routing.
Prerequisites
TigerGraph GSQL Algorithm Library installed. Links:
Steps
- Compile the closeness centrality algorithm query from the library.
- Run the closeness centrality query on your graph schema:
``gsql RUN QUERY tg_closeness_cent(v_type="User", e_type="friend", top_k=10, print_accum=TRUE, result_attr="closeness", file_path="") ``
- Closeness score is computed as the reciprocal of the sum of shortest path distances to all other nodes.
Common mistakes
- Running Closeness Centrality on huge graphs (10M+ nodes) directly. The computational complexity is high, so restrict to smaller graphs or run on subgraphs.
- Assuming undirected traversals work on one-way directed edges. Choose edge parameters that match physical schema connectivity.
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-closeness/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-closeness)