Agent skill

ihara-zeta

Ihara zeta function for graphs: non-backtracking walks, prime cycles, and spectral analysis via det(I - uB).

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill ihara-zeta --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 8 KB
Bundled scripts: none
Version: 1.0.0
Path: skills/ai-ml/ihara-zeta/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Ihara Zeta Function Skill > *"The Ihara zeta function encodes all non-backtracking closed walks - the 'prime cycles' of a graph."* ## Overview The Ihara zeta function generalizes the Riemann zeta function to graphs: 1. **Prime cycles** - Non-backtracking closed walks (graph analog of primes) 2. **Determinant formula** - ζ_G(u)^{-1} = det(I - uB) relation 3. **Ramanujan connection** - Riemann Hypothesis analog for graphs 4. **Non-backtracking matrix** - Central object for spectral clustering ## Definition ### Ihara Zeta Function For a graph G, the **Ihara zeta function** is: ``` ζ_G(u) = ∏_{[C]} (1 - u^{|C|})^{-1} ``` where: - Product is over equivalence classes [C] of **primitive** closed non-backtracking walks - |C| is the length of the cycle - Primitive = not a power of a shorter cycle ### Non-Backtracking Walk A walk `v₀ → v₁ → v₂ → ... → vₖ` is **non-backtracking** if: ``` vᵢ₊₁ ≠ vᵢ₋₁ for all i ``` (Never immediately return to the previous vertex) ## The Determinant Formula ### Bass-Hashimoto Formula ``` ζ_G(u)^{-1} = (1 - u²)^{|E| - |V|} · det(I - uB) ``` where **B** is the non-backtracking matrix. ### Non-Backtracking Matrix Indexed by **directed edges** (e, f) where head(e

What's inside
Steps it walks through
  1. Overview
  2. Definition
  3. Ihara Zeta Function
  4. Non-Backtracking Walk
  5. The Determinant Formula
  6. Bass-Hashimoto Formula
  7. Non-Backtracking Matrix
  8. Prime Cycles and Möbius
  9. Connection to Number Theory
  10. Möbius Function on Paths
  11. Ramanujan and Riemann Hypothesis
  12. Graph Riemann Hypothesis
  13. Verification
  14. Spectral Clustering via Non-Backtracking
Ships with 1 file
  • metadata.json
Commands it runs
just ihara-zeta graph.json           # Compute zeta function
just ihara-primes graph.json 10      # List prime cycles up to length 10
just ihara-grh graph.json            # Check Graph Riemann Hypothesis
just ihara-cluster graph.json 3      # Non-backtracking clustering
just ihara-spectrum graph.json       # Eigenvalues of B matrix
More from claude-skill-registry
All skills →
About this skill
What does the ihara-zeta skill do?

Ihara zeta function for graphs: non-backtracking walks, prime cycles, and spectral analysis via det(I - uB).

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill ihara-zeta --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going