pub struct LatticePathLengths {
pub lattice: f64,
pub randomized: f64,
pub random_edges: Vec<(VertexId, VertexId)>,
}Expand description
Fields§
§lattice: f64Average shortest path length of the 30 × 30 periodic lattice.
randomized: f64Average shortest path length after adding random_edges.
random_edges: Vec<(VertexId, VertexId)>The ten random edges added to the lattice, in the order they were drawn. Such random draws may in general produce loops and multi-edges; the ten edges drawn after seeding with 42 happen to contain neither.
Trait Implementations§
Source§impl Clone for LatticePathLengths
impl Clone for LatticePathLengths
Source§fn clone(&self) -> LatticePathLengths
fn clone(&self) -> LatticePathLengths
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 LatticePathLengths
impl Debug for LatticePathLengths
Source§impl Display for LatticePathLengths
impl Display for LatticePathLengths
Source§impl PartialEq for LatticePathLengths
impl PartialEq for LatticePathLengths
Source§fn eq(&self, other: &LatticePathLengths) -> bool
fn eq(&self, other: &LatticePathLengths) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LatticePathLengths
Auto Trait Implementations§
impl Freeze for LatticePathLengths
impl RefUnwindSafe for LatticePathLengths
impl Send for LatticePathLengths
impl Sync for LatticePathLengths
impl Unpin for LatticePathLengths
impl UnsafeUnpin for LatticePathLengths
impl UnwindSafe for LatticePathLengths
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