Skip to content

Add 3 new graph reasoner templates#30

Merged
somacdivad merged 8 commits intomainfrom
new-graph-examples
Mar 30, 2026
Merged

Add 3 new graph reasoner templates#30
somacdivad merged 8 commits intomainfrom
new-graph-examples

Conversation

@cafzal
Copy link
Copy Markdown
Collaborator

@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.

Comment thread v1/bom-reachability/pyproject.toml Outdated
Comment thread v1/site-centrality-network/pyproject.toml Outdated
Comment thread v1/supplier-impact-analysis/pyproject.toml Outdated
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-5hi8f85eg-relationalai.vercel.app/early-access/pyrel/templates
🔍 Inspect: https://vercel.com/relationalai/relationalai-docs/Fr63PE5bkFPBtPJFoLWbEG789Ci8

@somacdivad somacdivad merged commit b627d02 into main Mar 30, 2026
3 checks passed
@somacdivad somacdivad deleted the new-graph-examples branch March 30, 2026 16:24
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