pub struct GraphMetrics {Show 14 fields
pub pagerank: HashMap<String, f64>,
pub betweenness: HashMap<String, f64>,
pub eigenvector: HashMap<String, f64>,
pub hubs: HashMap<String, f64>,
pub authorities: HashMap<String, f64>,
pub blocks_count: HashMap<String, usize>,
pub blocked_by_count: HashMap<String, usize>,
pub critical_depth: HashMap<String, usize>,
pub k_core: HashMap<String, u32>,
pub articulation_points: HashSet<String>,
pub slack: HashMap<String, f64>,
pub cycles: Vec<Vec<String>>,
pub skipped_metrics: Vec<SkippedMetric>,
pub config: AnalysisConfig,
}Fields§
§pagerank: HashMap<String, f64>§betweenness: HashMap<String, f64>§eigenvector: HashMap<String, f64>§hubs: HashMap<String, f64>§blocks_count: HashMap<String, usize>§blocked_by_count: HashMap<String, usize>§critical_depth: HashMap<String, usize>§k_core: HashMap<String, u32>§articulation_points: HashSet<String>§slack: HashMap<String, f64>§cycles: Vec<Vec<String>>§skipped_metrics: Vec<SkippedMetric>§config: AnalysisConfigImplementations§
Source§impl GraphMetrics
impl GraphMetrics
Sourcepub fn merge_slow(&mut self, slow: GraphMetrics)
pub fn merge_slow(&mut self, slow: GraphMetrics)
Merge slow-phase metrics into this fast-phase result.
Fills in betweenness, eigenvector, and HITS from slow, removes their
entries from skipped_metrics, and upgrades config to full.
Sourcepub fn has_pending_slow_metrics(&self) -> bool
pub fn has_pending_slow_metrics(&self) -> bool
Returns true if slow-phase metrics have not yet been computed.
Trait Implementations§
Source§impl Clone for GraphMetrics
impl Clone for GraphMetrics
Source§fn clone(&self) -> GraphMetrics
fn clone(&self) -> GraphMetrics
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 moreAuto Trait Implementations§
impl Freeze for GraphMetrics
impl RefUnwindSafe for GraphMetrics
impl Send for GraphMetrics
impl Sync for GraphMetrics
impl Unpin for GraphMetrics
impl UnsafeUnpin for GraphMetrics
impl UnwindSafe for GraphMetrics
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