pub struct PageRankComputer { /* private fields */ }Expand description
High-performance PageRank computation engine
Implementations§
Source§impl PageRankComputer
impl PageRankComputer
Sourcepub fn with_config(config: PageRankConfig) -> Result<Self>
pub fn with_config(config: PageRankConfig) -> Result<Self>
Create with custom configuration
Sourcepub fn for_code_analysis() -> Self
pub fn for_code_analysis() -> Self
Create optimized for code dependency analysis
Sourcepub fn for_large_codebases() -> Self
pub fn for_large_codebases() -> Self
Create optimized for large codebases
Sourcepub fn compute(&self, graph: &DependencyGraph) -> Result<PageRankResults>
pub fn compute(&self, graph: &DependencyGraph) -> Result<PageRankResults>
Compute PageRank scores for the dependency graph
Trait Implementations§
Source§impl Debug for PageRankComputer
impl Debug for PageRankComputer
Auto Trait Implementations§
impl Freeze for PageRankComputer
impl RefUnwindSafe for PageRankComputer
impl Send for PageRankComputer
impl Sync for PageRankComputer
impl Unpin for PageRankComputer
impl UnwindSafe for PageRankComputer
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> 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