pub struct PageRankConfig {
pub damping_factor: f64,
pub max_iterations: usize,
pub epsilon: f64,
pub use_parallel: bool,
pub min_score_threshold: f64,
}Expand description
PageRank algorithm configuration
Fields§
§damping_factor: f64Damping factor (probability of following edges vs random jump)
max_iterations: usizeMaximum number of iterations before stopping
epsilon: f64Convergence threshold (L1 norm difference between iterations)
use_parallel: boolWhether to use parallel computation
min_score_threshold: f64Minimum score threshold for results (filter noise)
Implementations§
Source§impl PageRankConfig
impl PageRankConfig
Sourcepub fn for_code_analysis() -> Self
pub fn for_code_analysis() -> Self
Create configuration optimized for code dependency analysis
Sourcepub fn for_large_codebases() -> Self
pub fn for_large_codebases() -> Self
Create configuration for large codebases (>10k files)
Sourcepub fn for_research() -> Self
pub fn for_research() -> Self
Create configuration for high-precision research analysis
Trait Implementations§
Source§impl Clone for PageRankConfig
impl Clone for PageRankConfig
Source§fn clone(&self) -> PageRankConfig
fn clone(&self) -> PageRankConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PageRankConfig
impl Debug for PageRankConfig
Source§impl Default for PageRankConfig
impl Default for PageRankConfig
Source§impl<'de> Deserialize<'de> for PageRankConfig
impl<'de> Deserialize<'de> for PageRankConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PageRankConfig
impl PartialEq for PageRankConfig
Source§impl Serialize for PageRankConfig
impl Serialize for PageRankConfig
impl StructuralPartialEq for PageRankConfig
Auto Trait Implementations§
impl Freeze for PageRankConfig
impl RefUnwindSafe for PageRankConfig
impl Send for PageRankConfig
impl Sync for PageRankConfig
impl Unpin for PageRankConfig
impl UnwindSafe for PageRankConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more