Skip to content

Commit 4e2580d

Browse files
committed
Add SteinerTree CLI examples
1 parent abd92e6 commit 4e2580d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/src/cli.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ pred create MIS --graph 0-1,1-2,2-3 -o problem.json
4545
# Create a weighted instance (variant auto-upgrades to i32)
4646
pred create MIS --graph 0-1,1-2,2-3 --weights 3,1,2,1 -o weighted.json
4747

48+
# Create a Steiner Tree instance
49+
pred create SteinerTree --graph 0-1,0-3,1-2,1-3,2-3,2-4,3-4 --edge-weights 2,5,2,1,5,6,1 --terminals 0,2,4 -o steiner.json
50+
4851
# Or start from a canonical model example
4952
pred create --example MIS/SimpleGraph/i32 -o example.json
5053

@@ -272,6 +275,7 @@ pred create QUBO --matrix "1,0.5;0.5,2" -o qubo.json
272275
pred create KColoring --k 3 --graph 0-1,1-2,2-0 -o kcol.json
273276
pred create SpinGlass --graph 0-1,1-2 -o sg.json
274277
pred create MaxCut --graph 0-1,1-2,2-0 -o maxcut.json
278+
pred create SteinerTree --graph 0-1,0-3,1-2,1-3,2-3,2-4,3-4 --edge-weights 2,5,2,1,5,6,1 --terminals 0,2,4 -o steiner.json
275279
pred create Factoring --target 15 --bits-m 4 --bits-n 4 -o factoring.json
276280
pred create Factoring --target 21 --bits-m 3 --bits-n 3 -o factoring2.json
277281
```

0 commit comments

Comments
 (0)