Skip to content

Add 3 new graph reasoner templates#30

Open
cafzal wants to merge 5 commits intomainfrom
new-graph-examples
Open

Add 3 new graph reasoner templates#30
cafzal wants to merge 5 commits intomainfrom
new-graph-examples

Conversation

@cafzal
Copy link
Copy Markdown
Contributor

@cafzal cafzal commented Mar 25, 2026

Summary

Adapted from the supply chain hero journey questions crafted by Lizi:

  • BOM Reachability — Trace transitive dependencies through a bill of materials using reachable(full=True) and identify structural bottlenecks with betweenness centrality
  • Site Centrality Network — Assess supply chain resilience using weakly connected components, bridge detection, and eigenvector centrality on a weighted site dependency graph
  • Supplier Impact Analysis — Map upstream supplier dependencies for high-value customers and trace downstream blast radius of a supplier disruption using parameterized reachability

Test plan

  • BOM Reachability: pip install . && python bom_reachability.py — reachability results and betweenness centrality output verified
  • Site Centrality Network: pip install . && python site_centrality.py — WCC, bridge detection, and eigenvector centrality output verified
  • Supplier Impact Analysis: pip install . && python supplier_impact.py — upstream and downstream reachability plus betweenness output verified
  • CSV data files load without errors for all three templates
  • READMEs render correctly (frontmatter, code blocks, collapsible troubleshooting sections)

🤖 Generated with Claude Code

cafzal and others added 2 commits March 25, 2026 14:18
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@cafzal cafzal changed the title Add 3 new graph analytics templates Add 3 new graph reasoner templates Mar 25, 2026
@cafzal cafzal requested a review from rygao March 25, 2026 21:25
Copy link
Copy Markdown
Collaborator

@somacdivad somacdivad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @cafzal for helping to get us templates for other kinds of reasoning! Just a couple of tiny fixes needed here for dependencies, then we'll be all good to merge.

cafzal and others added 3 commits March 27, 2026 07:43
Co-authored-by: David Amos <somacdivad@gmail.com>
Co-authored-by: David Amos <somacdivad@gmail.com>
Co-authored-by: David Amos <somacdivad@gmail.com>
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 27, 2026

The docs preview for this pull request has been deployed to Vercel!

✅ Preview: https://relationalai-docs-aknasp7nj-relationalai.vercel.app/early-access/pyrel/templates
🔍 Inspect: https://vercel.com/relationalai/relationalai-docs/24nhm8HTXbygzYGQw1wHZij2uBQc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants