pub struct DistanceAnalytics<Node> { /* private fields */ }Expand description
Exact unweighted distance metrics for a connected undirected graph.
Implementations§
Source§impl<Node: Copy + Eq> DistanceAnalytics<Node>
impl<Node: Copy + Eq> DistanceAnalytics<Node>
Sourcepub fn eccentricities(&self) -> &[(Node, usize)]
pub fn eccentricities(&self) -> &[(Node, usize)]
Returns (node, eccentricity) pairs in canonical node-index order.
Sourcepub fn eccentricity(&self, node: Node) -> Option<usize>
pub fn eccentricity(&self, node: Node) -> Option<usize>
Returns the eccentricity of node, if it belongs to the graph.
Sourcepub fn into_eccentricities(self) -> Vec<(Node, usize)>
pub fn into_eccentricities(self) -> Vec<(Node, usize)>
Consumes the result and returns its canonical eccentricity pairs.
Trait Implementations§
Source§impl<Node: Clone> Clone for DistanceAnalytics<Node>
impl<Node: Clone> Clone for DistanceAnalytics<Node>
Source§fn clone(&self) -> DistanceAnalytics<Node>
fn clone(&self) -> DistanceAnalytics<Node>
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<Node: Debug> Debug for DistanceAnalytics<Node>
impl<Node: Debug> Debug for DistanceAnalytics<Node>
impl<Node: Eq> Eq for DistanceAnalytics<Node>
Source§impl<Node: PartialEq> PartialEq for DistanceAnalytics<Node>
impl<Node: PartialEq> PartialEq for DistanceAnalytics<Node>
impl<Node: PartialEq> StructuralPartialEq for DistanceAnalytics<Node>
Auto Trait Implementations§
impl<Node> Freeze for DistanceAnalytics<Node>
impl<Node> RefUnwindSafe for DistanceAnalytics<Node>where
Node: RefUnwindSafe,
impl<Node> Send for DistanceAnalytics<Node>where
Node: Send,
impl<Node> Sync for DistanceAnalytics<Node>where
Node: Sync,
impl<Node> Unpin for DistanceAnalytics<Node>where
Node: Unpin,
impl<Node> UnsafeUnpin for DistanceAnalytics<Node>
impl<Node> UnwindSafe for DistanceAnalytics<Node>where
Node: UnwindSafe,
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