pub struct CommunityAnalyzer { /* private fields */ }
Expand description
Analyzer for community detection in the Tor network graph
Implementations§
source§impl CommunityAnalyzer
impl CommunityAnalyzer
sourcepub fn new(db_client: Arc<dyn AnalysisDatabase>) -> Self
pub fn new(db_client: Arc<dyn AnalysisDatabase>) -> Self
Create a new CommunityAnalyzer with the given database client
sourcepub async fn analyze_louvain_communities(
&self,
projection_name: &str,
params: &LouvainConfig,
) -> Result<ComponentAnalysisResult, AnalysisError>
pub async fn analyze_louvain_communities( &self, projection_name: &str, params: &LouvainConfig, ) -> Result<ComponentAnalysisResult, AnalysisError>
Analyze communities using Louvain algorithm for a given projection
sourcepub async fn analyze_label_propagation_communities(
&self,
projection_name: &str,
params: &LabelPropagationConfig,
) -> Result<ComponentAnalysisResult, AnalysisError>
pub async fn analyze_label_propagation_communities( &self, projection_name: &str, params: &LabelPropagationConfig, ) -> Result<ComponentAnalysisResult, AnalysisError>
Analyze communities using Label Propagation algorithm for a given projection
sourcepub fn display_louvain_community_analysis(
&self,
result: &ComponentAnalysisResult,
config: &AnalysisSettings,
) -> Result<(), Box<dyn Error>>
pub fn display_louvain_community_analysis( &self, result: &ComponentAnalysisResult, config: &AnalysisSettings, ) -> Result<(), Box<dyn Error>>
Display detailed Louvain community analysis results
sourcepub fn display_label_propagation_community_analysis(
&self,
result: &ComponentAnalysisResult,
config: &AnalysisSettings,
) -> Result<(), Box<dyn Error>>
pub fn display_label_propagation_community_analysis( &self, result: &ComponentAnalysisResult, config: &AnalysisSettings, ) -> Result<(), Box<dyn Error>>
Display detailed Label Propagation community analysis results
Auto Trait Implementations§
impl Freeze for CommunityAnalyzer
impl !RefUnwindSafe for CommunityAnalyzer
impl Send for CommunityAnalyzer
impl Sync for CommunityAnalyzer
impl Unpin for CommunityAnalyzer
impl !UnwindSafe for CommunityAnalyzer
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