pub struct PageRankResults {
pub scores: HashMap<String, f64>,
pub iterations_converged: usize,
pub convergence_epsilon: f64,
pub graph_stats: GraphStatistics,
pub parameters: PageRankConfig,
pub performance_metrics: PerformanceMetrics,
}Expand description
PageRank computation results with comprehensive metadata
Fields§
§scores: HashMap<String, f64>PageRank scores for each node (key = file path, value = centrality score)
iterations_converged: usizeNumber of iterations until convergence
convergence_epsilon: f64Final convergence epsilon achieved
graph_stats: GraphStatisticsGraph statistics at time of computation
parameters: PageRankConfigAlgorithm parameters used
performance_metrics: PerformanceMetricsPerformance metrics
Implementations§
Source§impl PageRankResults
Utility functions for PageRank analysis
impl PageRankResults
Utility functions for PageRank analysis
Sourcepub fn nodes_above_threshold(&self, threshold: f64) -> Vec<(String, f64)>
pub fn nodes_above_threshold(&self, threshold: f64) -> Vec<(String, f64)>
Get nodes with scores above a threshold
Sourcepub fn node_score(&self, node_id: &String) -> Option<f64>
pub fn node_score(&self, node_id: &String) -> Option<f64>
Get the score for a specific node
Sourcepub fn score_statistics(&self) -> ScoreStatistics
pub fn score_statistics(&self) -> ScoreStatistics
Get basic statistics about the scores
Trait Implementations§
Source§impl Clone for PageRankResults
impl Clone for PageRankResults
Source§fn clone(&self) -> PageRankResults
fn clone(&self) -> PageRankResults
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 PageRankResults
impl Debug for PageRankResults
Source§impl<'de> Deserialize<'de> for PageRankResults
impl<'de> Deserialize<'de> for PageRankResults
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PageRankResults, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PageRankResults, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PageRankResults
impl PartialEq for PageRankResults
Source§impl Serialize for PageRankResults
impl Serialize for PageRankResults
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PageRankResults
Auto Trait Implementations§
impl Freeze for PageRankResults
impl RefUnwindSafe for PageRankResults
impl Send for PageRankResults
impl Sync for PageRankResults
impl Unpin for PageRankResults
impl UnwindSafe for PageRankResults
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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