pub struct PseudoDiameter {
pub length: f64,
pub from: Option<VertexId>,
pub to: Option<VertexId>,
}Expand description
A pseudo-diameter and its endpoints, see Graph::pseudo_diameter.
Fields§
§length: f64The eccentricity of the pseudo-peripheral vertex found: a lower bound of the diameter.
from: Option<VertexId>Source of the corresponding path (None if there is no such path).
to: Option<VertexId>Target of the corresponding path (None if there is no such path).
Trait Implementations§
Source§impl Clone for PseudoDiameter
impl Clone for PseudoDiameter
Source§fn clone(&self) -> PseudoDiameter
fn clone(&self) -> PseudoDiameter
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 moreimpl Copy for PseudoDiameter
Source§impl Debug for PseudoDiameter
impl Debug for PseudoDiameter
Source§impl Default for PseudoDiameter
impl Default for PseudoDiameter
Source§fn default() -> PseudoDiameter
fn default() -> PseudoDiameter
Returns the “default value” for a type. Read more
Source§impl PartialEq for PseudoDiameter
impl PartialEq for PseudoDiameter
Source§fn eq(&self, other: &PseudoDiameter) -> bool
fn eq(&self, other: &PseudoDiameter) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PseudoDiameter
Auto Trait Implementations§
impl Freeze for PseudoDiameter
impl RefUnwindSafe for PseudoDiameter
impl Send for PseudoDiameter
impl Sync for PseudoDiameter
impl Unpin for PseudoDiameter
impl UnsafeUnpin for PseudoDiameter
impl UnwindSafe for PseudoDiameter
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