Commit 487517e
perf: optimize pathdecomposition and add ground truth tests (#54)
* docs: add documentation improvements design plan
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* docs: add documentation improvements implementation plan
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* perf: optimize pathdecomposition and add ground truth tests
Build adjacency list once and pass by reference instead of rebuilding
from edge list in every function call during recursive branch-and-bound.
Also eliminate duplicate vsep_updated computation by reusing sorted costs.
Add pathwidth ground truth JSON dataset (21 standard graphs) and 4 new
tests that verify correctness against it. Mark tutte (46v, ~10s B&B) and
tutte MIS overhead (1232v grid, ~10s ILP) as #[ignore] for routine runs.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
* docs: add reduction workflow diagram
Add a visual diagram illustrating the core reduction workflow:
Problem A -> reduce_to() -> Problem B -> find_best() -> Solution B -> extract_solution() -> Solution A
Includes both light and dark theme SVG variants for mdBook.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* docs: add module overview diagram
Add a diagram showing how the main modules in the codebase relate:
- models/ contains problem type implementations
- rules/ contains reduction rules that import models
- registry/ collects reduction metadata at compile time
- solvers/ solve problem instances
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* docs: add trait hierarchy diagram
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* docs: rewrite Getting Started page with reduction workflow diagram
Rewrites the Getting Started page to:
- Start with "what this library does" overview
- Include the reduction workflow diagram (light/dark variants)
- Show a complete example with step-by-step comments
- Document chaining reductions pattern
- Add solvers section with links to API docs
- Document JSON resources (reduction_graph.json, problem_schemas.json)
- Update Next Steps section with relevant links
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* docs: update Architecture with diagrams and current API
- Add intro text and Module Overview section with SVG diagram
- Add Trait Hierarchy section with diagram and code examples
- Fix outdated API: solution_size() -> evaluate()
- Update method table with Metric, dims(), evaluate()
- Remove reference to deleted ConstraintSatisfactionProblem trait
- Fix ReduceTo syntax: problem.reduce_to::<T>() -> ReduceTo::<T>::reduce_to(&problem)
- Add Contributing section with issue-based workflow
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* chore: regenerate reduction_graph.json
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* refactor: single source location for JSON schemas
- Export examples now write directly to docs/src/reductions/
- Paper uses --root flag to access files via relative path
- Remove duplicate files from docs/paper/
- Update doc comments with correct paths
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* fix: resolve rustdoc and mdbook warnings
- Escape `Weighted<i32>` in doc comment to avoid HTML tag warning
- Remove orphan </details> tag in arch.md
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* docs: make arch.md orthogonal with getting-started.md
- Remove duplicated workflow/usage explanations
- Focus on implementation details for contributors
- Rename sections to "Implementing X" for clarity
- Reference getting-started.md for usage examples
- Streamline JSON schema examples
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* update
* diagrams
* refactor: Solver::find_best returns Option, polish docs
- Change Solver::find_best to return Option<Vec<usize>> (was Vec<Vec<usize>>)
for symmetry with find_satisfying
- Make BruteForce::find_all_best public for multi-solution queries
- Migrate all call sites: tests use find_all_best, examples use find_all_best
- Polish getting-started.md, arch.md, introduction.md
- Align arch.md sections with module overview (Models, Rules, Registry, Solvers)
- Add "Call for Contributions" section to introduction with authorship incentive
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* chore: remove stale docs/src/claude.md
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* fix: address PR review comments
- Move HashSet import to top of file (pathdecomposition test)
- Pretty-print pathwidth_ground_truth.json for readability
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>1 parent 3ee5da8 commit 487517e
123 files changed
Lines changed: 5768 additions & 2284 deletions
File tree
- .claude
- rules
- docs
- paper
- plans
- src
- reductions
- static
- examples
- src
- models
- graph
- optimization
- set
- specialized
- rules
- unitdiskmapping
- solvers
- testing
- unit_tests
- models
- graph
- optimization
- set
- specialized
- rules
- unitdiskmapping
- solvers
- ilp
- unitdiskmapping_algorithms
- tests
- data
- suites
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
26 | 28 | | |
27 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | | - | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
56 | 67 | | |
57 | 68 | | |
58 | 69 | | |
59 | | - | |
| 70 | + | |
60 | 71 | | |
61 | 72 | | |
62 | 73 | | |
| |||
84 | 95 | | |
85 | 96 | | |
86 | 97 | | |
87 | | - | |
| 98 | + | |
88 | 99 | | |
89 | 100 | | |
90 | 101 | | |
| |||
0 commit comments