graph-algorithms

Select graph representations and algorithms for domain problems with validation plans.

7|Updated Feb 14, 2026
One-click install
npx skills add https://github.com/KentoShimizu/sw-agent-skills --skill graph-algorithms-kentoshimizu
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: graph-algorithms
Source: https://github.com/KentoShimizu/sw-agent-skills/tree/main/skills/graph-algorithms
Command: npx skills add https://github.com/KentoShimizu/sw-agent-skills --skill graph-algorithms-kentoshimizu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) and assets (resource) components.

What problem does it solve?

Identify and justify the most suitable graph representation and algorithm for a given domain problem to ensure correctness and performance.

Core Features & Use Cases

  • Determine appropriate graph representations (adjacency list vs matrix, directed vs undirected) based on scale and operations.
  • Compare candidate algorithms with explicit trade-offs, validation plans, and reasoning.
  • Provide a structured workflow for problem framing, algorithm selection, and documentation artifacts.

Quick Start

Frame your graph problem and follow the workflow to select and validate a graph algorithm.

Frequently Asked Questions about graph-algorithms

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I choose the right graph algorithm for a specific optimization or planning problem?▼

Select a graph algorithm by framing your domain problem explicitly, comparing candidate algorithms with their trade-offs, and validating the choice against your specific optimization or planning requirements.

When should I use an adjacency list vs matrix for graph modeling?▼

Choose an adjacency list for large-scale graphs with sparse operations, and an adjacency matrix when you need dense connectivity checks and constant-time edge lookups during graph modeling.

What is the best way to compare shortest path and reachability algorithms for dependency analysis?▼

Compare graph algorithms for dependency analysis by evaluating explicit trade-offs, validation plans, and reasoning against your specific reachability, shortest path, and connectivity requirements.

How do I validate that a selected flow or connectivity algorithm is correct for my scenario?▼

Validate a graph algorithm by applying the structured workflow to create validation plans and documentation artifacts that prove correctness for your specific flow or connectivity scenario.

Can I use this workflow for directed and undirected graph problems?▼

Yes, this workflow supports both directed and undirected graph problems by determining appropriate representations and algorithms based on your specific scale and required operations.

What documentation artifacts are needed when selecting a graph representation?▼

Required documentation artifacts include explicit problem framing, algorithm comparison details, selection rules, validation plans, and reasoning justifying the chosen graph representation for correctness and performance.