shortest-path

Community

Fast, reliable graph shortest paths.

AuthorSPIRAL-EDWIN
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps users compute optimal routes and connectivity in weighted graphs, eliminating manual graph-traversal tasks and enabling rapid decision-making in routing, logistics, and network analysis.

Core Features & Use Cases

  • Single-source shortest paths with non-negative weights using Dijkstra.
  • All-pairs shortest paths with Floyd-Warshall for dense graphs or precomputed matrices.
  • Negative weights handling via Bellman-Ford and robust path reconstruction.
  • Heuristic search using A* when an admissible heuristic is available (e.g., geographic distance).
  • Real-world scenarios: city logistics routing, emergency response planning, network routing optimization.

Quick Start

Run the included examples to compute a sample path, or adapt the code to your graph. For example, use networkx to build a graph and call the dijkstra, bellman_ford, floyd_warshall, or a_star functions to obtain distances and reconstruct paths.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: shortest-path
Download link: https://github.com/SPIRAL-EDWIN/MCM-ICM-2601000/archive/main.zip#shortest-path

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.