You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Fix docs/src/cli.md: replace all --edges with --graph to match actual CLI flag
- Fix docs typo suggestion example to use a close misspelling that triggers the hint
- Show full variant slash notation (Name/Graph/Weight) instead of diff-from-default
- Remove dead variant_to_slash function and unused HashSet import
- Deduplicate format_variant into shared variant_to_full_slash helper
- Auto-output JSON when stdout is piped for data commands (reduce, solve, evaluate, inspect)
- Add SpinGlass f64 weight inference from float syntax in --couplings/--fields
- Remove duplicate [default: 1] in help text (clap already shows it)
- Count reachable nodes (not unique problem names) in neighbor output
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
pred create MIS --edges 0-1,1-2,2-3 | pred reduce - --to QUBO
320
+
pred create MIS --graph 0-1,1-2,2-3 | pred reduce - --to QUBO
321
321
```
322
322
323
323
The bundle contains everything needed to map solutions back:
@@ -346,8 +346,8 @@ pred solve problem.json --timeout 30 # abort after 30 seconds
346
346
Stdin is supported with `-`:
347
347
348
348
```bash
349
-
pred create MIS --edges 0-1,1-2,2-3 | pred solve -
350
-
pred create MIS --edges 0-1,1-2,2-3 | pred solve - --solver brute-force
349
+
pred create MIS --graph 0-1,1-2,2-3 | pred solve -
350
+
pred create MIS --graph 0-1,1-2,2-3 | pred solve - --solver brute-force
351
351
```
352
352
353
353
When the problem is not ILP, the solver automatically reduces it to ILP, solves, and maps the solution back. The auto-reduction is shown in the output:
@@ -429,8 +429,10 @@ You can also specify variants with a slash: `MIS/UnitDiskGraph`, `SpinGlass/Simp
429
429
If you mistype a problem name, `pred` will suggest the closest match:
430
430
431
431
```bash
432
-
$ pred show MaxIndependentSet
433
-
Error: Unknown problem: MaxIndependentSet
434
-
Did you mean: MaximumIndependentSet?
435
-
Run `pred list` to see all available problem types.
0 commit comments