pub struct BipartiteMatching {
pub row_to_var: Vec<Option<usize>>,
pub var_to_row: Vec<Option<usize>>,
pub size: usize,
}Expand description
Maximum-cardinality bipartite matching between equality rows (left) and variables (right).
Fields§
§row_to_var: Vec<Option<usize>>row_to_var[k] = Some(j) when equality row k is matched to
variable j, else None. Length = n_eq_rows.
var_to_row: Vec<Option<usize>>Inverse mapping; length = n_vars.
size: usizeCardinality of the matching.
Trait Implementations§
Source§impl Clone for BipartiteMatching
impl Clone for BipartiteMatching
Source§fn clone(&self) -> BipartiteMatching
fn clone(&self) -> BipartiteMatching
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 BipartiteMatching
impl Debug for BipartiteMatching
Source§impl Default for BipartiteMatching
impl Default for BipartiteMatching
Source§fn default() -> BipartiteMatching
fn default() -> BipartiteMatching
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BipartiteMatching
impl RefUnwindSafe for BipartiteMatching
impl Send for BipartiteMatching
impl Sync for BipartiteMatching
impl Unpin for BipartiteMatching
impl UnsafeUnpin for BipartiteMatching
impl UnwindSafe for BipartiteMatching
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