Open
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #640 +/- ##
=======================================
Coverage 96.77% 96.77%
=======================================
Files 226 226
Lines 29919 29919
=======================================
Hits 28955 28955
Misses 964 964 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Contributor
Implementation SummaryChanges
Deviations from Plan
Open Questions
|
There was a problem hiding this comment.
Pull request overview
Adds the BiconnectivityAugmentation satisfaction problem model (weighted candidate edges + budget) to the library, wires it into the public API and CLI, and updates generated docs/metadata accordingly.
Changes:
- Introduces
BiconnectivityAugmentation<G, W>model with evaluation via biconnectivity (articulation-point) check. - Integrates the model across exports (
models,prelude), CLI alias/dispatch/create flow, and adds unit/integration/CLI tests. - Regenerates documentation artifacts (
problem_schemas.json,reduction_graph.json) and updates the paper’s problem definitions.
Reviewed changes
Copilot reviewed 14 out of 14 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
src/models/graph/biconnectivity_augmentation.rs |
New model implementation + schema inventory entry + variants + internal biconnectivity check |
src/models/graph/mod.rs |
Registers/re-exports the new graph model |
src/models/mod.rs |
Re-exports the new model at the top-level models module |
src/lib.rs |
Exposes the model via prelude |
tests/suites/integration.rs |
Adds end-to-end solvability integration test for the new model |
src/unit_tests/trait_consistency.rs |
Adds trait consistency coverage for the new model |
src/unit_tests/models/graph/biconnectivity_augmentation.rs |
Adds focused unit tests for creation/evaluation/serialization/solver behavior |
problemreductions-cli/src/problem_name.rs |
Adds CLI alias resolution for the new problem |
problemreductions-cli/src/dispatch.rs |
Adds CLI load/serialize dispatch support + tests |
problemreductions-cli/src/commands/create.rs |
Adds pred create support for potential edges + budget; updates graph parsing for optional --num-vertices; adds tests |
problemreductions-cli/src/cli.rs |
Adds CLI flags --potential-edges and --budget, and help text/examples |
docs/src/reductions/problem_schemas.json |
Updates generated problem schema metadata |
docs/src/reductions/reduction_graph.json |
Updates generated reduction graph metadata |
docs/paper/reductions.typ |
Adds paper definition/description for BiconnectivityAugmentation |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+1321
to
+1327
| let output_path = std::env::temp_dir().join("pred_test_create_biconnectivity.json"); | ||
| let out = OutputConfig { | ||
| output: Some(output_path.clone()), | ||
| quiet: true, | ||
| json: false, | ||
| auto_json: false, | ||
| }; |
Comment on lines
+1351
to
+1358
| let output_path = | ||
| std::env::temp_dir().join("pred_test_create_biconnectivity_isolated.json"); | ||
| let out = OutputConfig { | ||
| output: Some(output_path.clone()), | ||
| quiet: true, | ||
| json: false, | ||
| auto_json: false, | ||
| }; |
Comment on lines
+401
to
+413
| let data = json!({ | ||
| "graph": { | ||
| "inner": { | ||
| "nodes": [null, null, null, null], | ||
| "node_holes": [], | ||
| "edge_property": "undirected", | ||
| "edges": [[0, 1, null], [1, 2, null], [2, 3, null]] | ||
| } | ||
| }, | ||
| "potential_weights": [[0, 2, 3], [0, 3, 4], [1, 3, 2]], | ||
| "budget": 5 | ||
| }); | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add the BiconnectivityAugmentation problem model — a satisfaction problem (Metric = bool) from Garey & Johnson (A2 ND18). Given an undirected graph with weighted potential edges and a budget B, determine if a subset of edges with total weight <= B can be added to make the graph biconnected.
Fixes #230