pub struct CentralityScore {
pub node_id: String,
pub degree: f32,
pub in_degree: f32,
pub out_degree: f32,
}Expand description
Centrality scores for a node.
Fields§
§node_id: StringNode ID.
degree: f32Degree centrality (normalized: 0.0 to 1.0).
in_degree: f32In-degree centrality (how many nodes point to this).
out_degree: f32Out-degree centrality (how many nodes this points to).
Trait Implementations§
Source§impl Clone for CentralityScore
impl Clone for CentralityScore
Source§fn clone(&self) -> CentralityScore
fn clone(&self) -> CentralityScore
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 CentralityScore
impl Debug for CentralityScore
Source§impl<'de> Deserialize<'de> for CentralityScore
impl<'de> Deserialize<'de> for CentralityScore
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
Auto Trait Implementations§
impl Freeze for CentralityScore
impl RefUnwindSafe for CentralityScore
impl Send for CentralityScore
impl Sync for CentralityScore
impl Unpin for CentralityScore
impl UnsafeUnpin for CentralityScore
impl UnwindSafe for CentralityScore
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