Skip to content

docs: document ALGORITHM option and wire it into Docker#9

Merged
benmandrew merged 1 commit into
mainfrom
docs/algorithm-option
Jun 13, 2026
Merged

docs: document ALGORITHM option and wire it into Docker#9
benmandrew merged 1 commit into
mainfrom
docs/algorithm-option

Conversation

@benmandrew

Copy link
Copy Markdown
Owner

Summary

Follow-up to #8. The --algorithm bfs|bestfirst|astar flag added there was only reachable via the CLI — the Docker entrypoint (the interface the README documents) had no way to select it, so the README didn't reflect the new search strategies.

Changes

  • Add an ALGORITHM env var (default bfs) to docker-compose.yml and map it to --algorithm in docker/Dockerfile.graph's entrypoint, mirroring how WITH_DFS / BFS_MAX_DEPTH / BFS_TIMEOUT_S are wired.
  • Document the three search strategies (bfs, bestfirst, astar) in the README, and note that WITH_DFS=true takes precedence.

Testing

Verified the entrypoint's generated flag combinations parse and run: --algorithm astar, --with-dfs --algorithm bestfirst (DFS path wins, as documented), and the unset default (bfs).

The --algorithm bfs|bestfirst|astar flag was only reachable via the CLI;
the Docker entrypoint (the documented interface) had no way to select it.
Add an ALGORITHM env var mapped to --algorithm in docker-compose.yml and
the graph entrypoint, and document the three search strategies in the
README. WITH_DFS=true continues to take precedence.
@benmandrew benmandrew merged commit d2c5662 into main Jun 13, 2026
6 checks passed
@benmandrew benmandrew deleted the docs/algorithm-option branch June 13, 2026 19:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant