pub struct ComponentAnalyzer { /* private fields */ }
Expand description
Analyzer for connected components in the Tor network graph
Implementations§
source§impl ComponentAnalyzer
impl ComponentAnalyzer
sourcepub fn new(db_client: Arc<dyn AnalysisDatabase>) -> Self
pub fn new(db_client: Arc<dyn AnalysisDatabase>) -> Self
Create a new ComponentAnalyzer with the given database client
sourcepub async fn analyze_weakly_connected_components(
&self,
projection_name: &str,
) -> Result<ComponentAnalysisResult, AnalysisError>
pub async fn analyze_weakly_connected_components( &self, projection_name: &str, ) -> Result<ComponentAnalysisResult, AnalysisError>
Analyze weakly connected components for a given projection
sourcepub async fn analyze_strongly_connected_components(
&self,
projection_name: &str,
) -> Result<ComponentAnalysisResult, AnalysisError>
pub async fn analyze_strongly_connected_components( &self, projection_name: &str, ) -> Result<ComponentAnalysisResult, AnalysisError>
Analyze strongly connected components for a given projection
sourcepub fn display_weak_connectivity_analysis(
&self,
result: &ComponentAnalysisResult,
config: &AnalysisSettings,
) -> Result<(), Box<dyn Error>>
pub fn display_weak_connectivity_analysis( &self, result: &ComponentAnalysisResult, config: &AnalysisSettings, ) -> Result<(), Box<dyn Error>>
Display detailed component analysis results
sourcepub fn display_strong_connectivity_analysis(
&self,
result: &ComponentAnalysisResult,
config: &AnalysisSettings,
) -> Result<(), Box<dyn Error>>
pub fn display_strong_connectivity_analysis( &self, result: &ComponentAnalysisResult, config: &AnalysisSettings, ) -> Result<(), Box<dyn Error>>
Display detailed strong connectivity analysis results
Auto Trait Implementations§
impl Freeze for ComponentAnalyzer
impl !RefUnwindSafe for ComponentAnalyzer
impl Send for ComponentAnalyzer
impl Sync for ComponentAnalyzer
impl Unpin for ComponentAnalyzer
impl !UnwindSafe for ComponentAnalyzer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more