pub struct CategoryEdge {
pub target: usize,
pub centroid_distance: f64,
pub bridge_count: usize,
pub max_bridge_strength: f64,
pub mean_bridge_strength: f64,
pub weight: f64,
}Expand description
Edge in the category adjacency graph.
Fields§
§target: usizeIndex of the neighbor category.
centroid_distance: f64Angular distance between category centroids on the sphere.
bridge_count: usizeNumber of bridge items connecting these two categories.
max_bridge_strength: f64Strongest bridge connecting these two categories (0.0 if no bridges).
mean_bridge_strength: f64Mean bridge strength across all bridges (0.0 if no bridges).
weight: f64Combined edge weight (lower = more connected).
Computed as centroid_distance / (1 + bridge_count * mean_bridge_strength).
This prefers fewer strong bridges over many weak ones.
Trait Implementations§
Source§impl Clone for CategoryEdge
impl Clone for CategoryEdge
Source§fn clone(&self) -> CategoryEdge
fn clone(&self) -> CategoryEdge
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 moreAuto Trait Implementations§
impl Freeze for CategoryEdge
impl RefUnwindSafe for CategoryEdge
impl Send for CategoryEdge
impl Sync for CategoryEdge
impl Unpin for CategoryEdge
impl UnsafeUnpin for CategoryEdge
impl UnwindSafe for CategoryEdge
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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