pub struct NeighborDegree {
pub knn: Vec<f64>,
pub knnk: Vec<f64>,
}Expand description
Result of Graph::avg_nearest_neighbor_degree.
Fields§
§knn: Vec<f64>knn[i] is the (possibly weighted) average degree of the neighbors of
the i-th selected vertex; NaN for isolated vertices (with weights:
for vertices of zero strength).
knnk: Vec<f64>The k_nn(k) degree correlation function: knnk[k - 1] is the mean
of knn over the selected vertices of degree k (with weights, the
mean weighted by their strengths), NaN for degrees that do not occur.
Note the shift: the first element is for degree one. Its length is the
maximum degree (according to mode) of the whole graph.
Trait Implementations§
Source§impl Clone for NeighborDegree
impl Clone for NeighborDegree
Source§fn clone(&self) -> NeighborDegree
fn clone(&self) -> NeighborDegree
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 NeighborDegree
impl Debug for NeighborDegree
Source§impl PartialEq for NeighborDegree
impl PartialEq for NeighborDegree
Source§fn eq(&self, other: &NeighborDegree) -> bool
fn eq(&self, other: &NeighborDegree) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NeighborDegree
Auto Trait Implementations§
impl Freeze for NeighborDegree
impl RefUnwindSafe for NeighborDegree
impl Send for NeighborDegree
impl Sync for NeighborDegree
impl Unpin for NeighborDegree
impl UnsafeUnpin for NeighborDegree
impl UnwindSafe for NeighborDegree
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