Skip to main content

nodedb_graph/
path_params.rs

1// SPDX-License-Identifier: Apache-2.0
2
3//! Parameter bundle for bidirectional shortest-path search, shared by the
4//! durable dense path and the read-your-own-writes (overlay) path.
5
6/// Bundled `shortest_path` arguments. Keeps `shortest_path` /
7/// `shortest_path_dense` / `shortest_path_overlay` under clippy's
8/// argument-count limit once the overlay parameter is threaded through,
9/// without changing traversal semantics.
10pub struct ShortestPathParams<'a> {
11    pub src: &'a str,
12    pub dst: &'a str,
13    pub label_filter: Option<&'a str>,
14    pub max_depth: usize,
15    pub max_visited: usize,
16    pub frontier_bitmap: Option<&'a nodedb_types::SurrogateBitmap>,
17}