Skip to content
Back to skills

Graph Theory And Algorithms

ASecurity

Work on graph theory and algorithmic mathematics: trees, connectivity, paths, cycles, coloring, planarity, matchings, flows, shortest paths, spanning trees, complexity (P vs NP), network analysis. Use for graph problems, networks, and algorithm design.

  • 8 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 9, 2026
ai-agentsgo

Works with

  • cli

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add hamzabellouch/agent-skills --skill graph-theory-and-algorithms --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Graph Theory And Algorithms?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Graph Theory And Algorithms
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hamzabellouch-graph-theory-and-algorithms/badge)](https://www.skillsdirectory.com/skills/hamzabellouch-graph-theory-and-algorithms)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: graph-theory-and-algorithms
description: "Work on graph theory and algorithmic mathematics: trees, connectivity, paths, cycles, coloring, planarity, matchings, flows, shortest paths, spanning trees, complexity (P vs NP), network analysis. Use for graph problems, networks, and algorithm design."
---

# Graph Theory & Algorithms

## Basics
- Graph G = (V,E); degree sum = 2|E| (handshake); paths, cycles, connected components; bipartite iff no odd cycle; trees: connected acyclic, |E| = |V| - 1; forests; rooted trees.
- Euler: circuit exists iff connected and all degrees even; Hamiltonian cycles (NP-complete; Dirac and Ore conditions).
- Planarity: Euler's formula V - E + F = 2; E <= 3V - 6; Kuratowski (K5, K3,3 minors); Four Color Theorem; chromatic number chi(G) <= Delta + 1, Brooks theorem; chromatic polynomial.
- Matchings: Hall's theorem; Konig (bipartite max matching = min vertex cover); Tutte; Hungarian algorithm for assignment.
- Connectivity: Menger's theorem; max-flow min-cut (Ford-Fulkerson, Edmonds-Karp, Dinic).
- Spectral: adjacency and Laplacian eigenvalues; number of spanning trees via Kirchhoff's matrix-tree theorem; expanders; random walks.

## Algorithms
- BFS/DFS O(V+E); topological sort; strongly connected components (Tarjan/Kosaraju).
- Shortest paths: Dijkstra (non-negative weights) O((V+E) log V), Bellman-Ford (negative edges), Floyd-Warshall O(V^3), A*.
- Minimum spanning tree: Kruskal (union-find) and Prim.
- Network flow, bipartite matching, 2-SAT, LCA.
- Complexity: P, NP, NP-complete (SAT, 3-coloring, clique, vertex cover, TSP decision, Hamiltonian path); reductions; approximation algorithms (2-approx vertex cover); P vs NP open.

## Random & extremal graphs
Erdos-Renyi G(n,p) threshold phenomena (connectivity at p = ln n/n); small-world and scale-free networks; Turan; Ramsey; graph limits.

## Proof/solution pattern
Pick the right invariant (degree, parity, coloring), use induction on vertices/edges, double count edges, apply extremal choice (longest path), or reduce to a known algorithm.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.