pub struct DistributedStats {
pub balance_ratio: f64,
pub edge_cut_fraction: f64,
pub replication_factor: f64,
pub shard_sizes: Vec<usize>,
}Expand description
Summary statistics for a distributed graph.
Fields§
§balance_ratio: f64max_shard_size / avg_shard_size (1.0 = perfectly balanced).
edge_cut_fraction: f64Fraction of edges that cross partition boundaries.
replication_factor: f64Average number of shards a vertex is present in (including mirrors).
shard_sizes: Vec<usize>Number of vertices in each shard (owned, not mirror).
Trait Implementations§
Source§impl Clone for DistributedStats
impl Clone for DistributedStats
Source§fn clone(&self) -> DistributedStats
fn clone(&self) -> DistributedStats
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DistributedStats
impl RefUnwindSafe for DistributedStats
impl Send for DistributedStats
impl Sync for DistributedStats
impl Unpin for DistributedStats
impl UnsafeUnpin for DistributedStats
impl UnwindSafe for DistributedStats
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more