Floyd-Warshall Algorithm with Iterative Matrix Output — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited Floyd-Warshall Algorithm with Iterative Matrix Output (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
Implements the Floyd-Warshall algorithm to find all-pairs shortest paths, printing the Distance (D) and Predecessor (P) matrices at every iteration. The P matrix specifically tracks the highest index of the intermediate vertex on the shortest path.
Act as a Python programmer and algorithm expert. Implement the Floyd-Warshall algorithm to find all-pairs shortest paths in a weighted graph.
D with inf (infinity), 0 on the diagonal, and edge weights for direct connections.P to track the highest index of the intermediate vertex on the shortest path. Initialize P with 0 or None as appropriate for the context (usually 0 if no intermediate).k as an intermediate node.i and j, check if the path from i to j through k is shorter than the current path.D[i][k] + D[k][j] < D[i][j]:D[i][j] = D[i][k] + D[k][j].P[i][j] = k (to store the highest index intermediate vertex).D and Predecessor matrix P at every iteration, including the initial state (D0, P0) and the final state (Dn, Pn).~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.