pub struct Analogy {
pub center_id: u64,
pub structural_similarity: f32,
pub content_similarity: f32,
pub combined_score: f32,
pub pattern: PatternMatch,
pub subgraph_nodes: Vec<u64>,
}Expand description
A single analogy found.
Fields§
§center_id: u64The center node ID of the analogous subgraph.
structural_similarity: f32Structural similarity score (0.0 to 1.0).
content_similarity: f32Content similarity score (cosine similarity, 0.0 to 1.0).
combined_score: f32Combined score: 0.6 * structural + 0.4 * content.
pattern: PatternMatchThe structural fingerprint of this analogy.
subgraph_nodes: Vec<u64>All node IDs in the analogous subgraph.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Analogy
impl RefUnwindSafe for Analogy
impl Send for Analogy
impl Sync for Analogy
impl Unpin for Analogy
impl UnsafeUnpin for Analogy
impl UnwindSafe for Analogy
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