pub struct DegreeReport {
pub scores: Vec<(String, u64)>,
pub truncated: bool,
}Expand description
Result of [GraphDb::degree_centrality].
Fields§
§scores: Vec<(String, u64)>Node keys and their degree. Sorted: degree descending, key ascending on ties.
truncated: booltrue if the time budget fired before all nodes were processed.
Trait Implementations§
Source§impl Clone for DegreeReport
impl Clone for DegreeReport
Source§fn clone(&self) -> DegreeReport
fn clone(&self) -> DegreeReport
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 DegreeReport
impl Debug for DegreeReport
Source§impl<'de> Deserialize<'de> for DegreeReport
impl<'de> Deserialize<'de> for DegreeReport
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 DegreeReport
impl RefUnwindSafe for DegreeReport
impl Send for DegreeReport
impl Sync for DegreeReport
impl Unpin for DegreeReport
impl UnsafeUnpin for DegreeReport
impl UnwindSafe for DegreeReport
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