nodedb_graph/bfs_params.rs
1// SPDX-License-Identifier: Apache-2.0
2
3//! Parameter bundle for BFS traversal, shared by the durable and
4//! read-your-own-writes (overlay) traversal paths.
5
6use crate::csr::Direction;
7
8/// Bundled BFS traversal arguments. Keeps `traverse_bfs` / `traverse_bfs_overlay`
9/// / `traverse_bfs_dense` under clippy's argument-count limit without changing
10/// traversal semantics.
11pub struct BfsParams<'a> {
12 pub start_nodes: &'a [&'a str],
13 pub label_filter: Option<&'a str>,
14 pub direction: Direction,
15 pub max_depth: usize,
16 pub max_visited: usize,
17 pub frontier_bitmap: Option<&'a nodedb_types::SurrogateBitmap>,
18}