[ci-force] add line about seed
This commit is contained in:
parent
01c8e2e641
commit
d782a192bc
1 changed files with 13 additions and 0 deletions
13
README.md
13
README.md
|
|
@ -66,6 +66,19 @@ setting the environment variable `D2_LAYOUT`.
|
|||
D2_LAYOUT=tala d2 in.d2 out.svg
|
||||
```
|
||||
|
||||
### Seeds
|
||||
|
||||
Optimal placements of nodes that minimizes distance and crossings is an NP-hard problem.
|
||||
TALA searches with heuristics to get an approximation. This search space has some
|
||||
randomness at each step. Choosing a different seed for this randomness can have signficant
|
||||
impact on the overall layout, as it may converge on an entirely different one.
|
||||
|
||||
For advanced usage of TALA, you may specify the seed to get a different layout:
|
||||
|
||||
```d2
|
||||
d2 --layout tala --tala-seed 44 input.d2
|
||||
```
|
||||
|
||||
### Add API token (optional)
|
||||
|
||||
You may skip this step if you are just evaluating.
|
||||
|
|
|
|||
Loading…
Reference in a new issue