pub struct Centralization {
pub scores: Vec<f64>,
pub centralization: f64,
pub theoretical_max: f64,
}Expand description
Vertex-level scores together with the graph-level centralization index.
Returned by centralization_degree,
centralization_betweenness and
centralization_closeness.
Fields§
§scores: Vec<f64>The vertex-level centrality scores of all vertices.
centralization: f64The graph-level centralization index (normalized if requested).
theoretical_max: f64The centralization of the most centralized graph with the same number of vertices (and directedness).
Trait Implementations§
Source§impl Clone for Centralization
impl Clone for Centralization
Source§fn clone(&self) -> Centralization
fn clone(&self) -> Centralization
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Centralization
impl Debug for Centralization
Source§impl PartialEq for Centralization
impl PartialEq for Centralization
Source§fn eq(&self, other: &Centralization) -> bool
fn eq(&self, other: &Centralization) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for Centralization
Auto Trait Implementations§
impl Freeze for Centralization
impl RefUnwindSafe for Centralization
impl Send for Centralization
impl Sync for Centralization
impl Unpin for Centralization
impl UnsafeUnpin for Centralization
impl UnwindSafe for Centralization
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