scribe_graph/
builder.rs

1//! # Legacy Graph Builder (Stub Implementation)
2//! 
3//! This module provides stub implementations for backward compatibility.
4//! New code should use the PageRank centrality system directly.
5
6use scribe_core::Result;
7use scribe_analysis::AnalysisResult;
8use crate::graph::DependencyGraph;
9
10/// Legacy graph builder maintained for backward compatibility
11#[derive(Debug)]
12pub struct GraphBuilder;
13
14impl GraphBuilder {
15    pub fn new() -> Self {
16        Self
17    }
18    
19    pub async fn build_from_analysis(&self, _analysis: &AnalysisResult) -> Result<DependencyGraph> {
20        // Stub implementation - return empty graph
21        Ok(DependencyGraph::new())
22    }
23}
24
25impl Default for GraphBuilder {
26    fn default() -> Self {
27        Self::new()
28    }
29}
30
31/// Legacy build options
32#[derive(Debug, Clone)]
33pub struct BuildOptions;
34
35impl Default for BuildOptions {
36    fn default() -> Self {
37        Self
38    }
39}