pub struct KSolution<A> {
pub cliques: Vec<Vec<(usize, usize)>>,
pub costs: Vec<A>,
pub free: Vec<(usize, usize)>,
pub cost: A,
}Expand description
Reconstructed cliques and unmatched vertices in quotient node order.
With a threshold, the objective sums d - threshold over pairs within
transversal partial cliques, and singleton vertices are free. Reported
costs from k_assignment sum original pair costs without the shift.
Fields§
§cliques: Vec<Vec<(usize, usize)>>Cliques, each in increasing original partite order.
costs: Vec<A>Internal edge sum of each clique.
free: Vec<(usize, usize)>Singleton vertices, in quotient node order.
cost: ASum of clique costs.
Trait Implementations§
impl<A: PartialEq> StructuralPartialEq for KSolution<A>
Auto Trait Implementations§
impl<A> Forget for KSolution<A>
impl<A> Freeze for KSolution<A>
impl<A> Move for KSolution<A>
impl<A> RefUnwindSafe for KSolution<A>
impl<A> Send for KSolution<A>
impl<A> Sync for KSolution<A>
impl<A> Unpin for KSolution<A>
impl<A> UnsafeUnpin for KSolution<A>
impl<A> UnwindSafe for KSolution<A>
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