artistpath_core/
pathfinding_config.rs

1/// Configuration for pathfinding algorithms
2#[derive(Debug, Clone)]
3pub struct PathfindingConfig {
4    /// Only use connections with similarity >= threshold (0.0-1.0)
5    pub min_match: f32,
6    /// Limit to top N connections per artist
7    pub top_related: usize,
8    /// Use weighted pathfinding for best similarity (default: shortest path)
9    pub weighted: bool,
10}
11
12impl PathfindingConfig {
13    pub fn new(min_match: f32, top_related: usize, weighted: bool) -> Self {
14        Self {
15            min_match,
16            top_related,
17            weighted,
18        }
19    }
20}
21
22impl Default for PathfindingConfig {
23    fn default() -> Self {
24        Self {
25            min_match: 0.0,
26            top_related: 80,
27            weighted: false,
28        }
29    }
30}