pub struct WeightedMatchingResult<T> {
pub left_match: Vec<Option<usize>>,
pub right_match: Vec<Option<usize>>,
pub matching_size: usize,
pub edges: Vec<(usize, usize)>,
pub total_weight: T,
}Expand description
Result of weighted bipartite matching.
Fields§
§left_match: Vec<Option<usize>>For each vertex in left partition, the matched vertex in right partition.
right_match: Vec<Option<usize>>For each vertex in right partition, the matched vertex in left partition.
matching_size: usizeSize of the maximum matching.
edges: Vec<(usize, usize)>List of edges in the matching.
total_weight: TTotal weight of the matching.
Trait Implementations§
Source§impl<T: Clone> Clone for WeightedMatchingResult<T>
impl<T: Clone> Clone for WeightedMatchingResult<T>
Source§fn clone(&self) -> WeightedMatchingResult<T>
fn clone(&self) -> WeightedMatchingResult<T>
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<T> Freeze for WeightedMatchingResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for WeightedMatchingResult<T>where
T: RefUnwindSafe,
impl<T> Send for WeightedMatchingResult<T>where
T: Send,
impl<T> Sync for WeightedMatchingResult<T>where
T: Sync,
impl<T> Unpin for WeightedMatchingResult<T>where
T: Unpin,
impl<T> UnwindSafe for WeightedMatchingResult<T>where
T: 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