pub struct AlignmentResult {
pub mapping: Vec<(usize, usize)>,
pub score: f64,
pub edge_conservation: f64,
pub converged: bool,
pub iterations: usize,
}Expand description
Result of a network alignment computation.
Contains the node mapping between two graphs along with quality metrics.
Fields§
§mapping: Vec<(usize, usize)>Pairs of aligned nodes: (node_in_g1, node_in_g2).
score: f64Overall alignment quality score (higher is better).
edge_conservation: f64Fraction of edges in G1 that are preserved in the alignment to G2.
converged: boolWhether the algorithm converged within the specified tolerance.
iterations: usizeNumber of iterations performed.
Trait Implementations§
Source§impl Clone for AlignmentResult
impl Clone for AlignmentResult
Source§fn clone(&self) -> AlignmentResult
fn clone(&self) -> AlignmentResult
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 AlignmentResult
impl RefUnwindSafe for AlignmentResult
impl Send for AlignmentResult
impl Sync for AlignmentResult
impl Unpin for AlignmentResult
impl UnsafeUnpin for AlignmentResult
impl UnwindSafe for AlignmentResult
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