pub struct PartitionMetrics {
pub num_nodes: usize,
pub num_internal_edges: usize,
pub num_boundary_edges: usize,
pub load_balance_score: f32,
pub communication_cost: f32,
}Expand description
Metrics for evaluating partition quality
Fields§
§num_nodes: usizeNumber of nodes in partition
num_internal_edges: usizeNumber of internal edges
num_boundary_edges: usizeNumber of boundary edges
load_balance_score: f32Load balance score (0.0 = perfect, higher = worse)
communication_cost: f32Communication cost estimate
Trait Implementations§
Source§impl Clone for PartitionMetrics
impl Clone for PartitionMetrics
Source§fn clone(&self) -> PartitionMetrics
fn clone(&self) -> PartitionMetrics
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 PartitionMetrics
impl RefUnwindSafe for PartitionMetrics
impl Send for PartitionMetrics
impl Sync for PartitionMetrics
impl Unpin for PartitionMetrics
impl UnsafeUnpin for PartitionMetrics
impl UnwindSafe for PartitionMetrics
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