pub struct CategoryGraph {
pub adjacency: Vec<Vec<CategoryEdge>>,
pub bridges: HashMap<(usize, usize), Vec<BridgeItem>>,
}Expand description
The full category adjacency graph.
Fields§
§adjacency: Vec<Vec<CategoryEdge>>Adjacency list: adjacency[i] contains edges from category i.
bridges: HashMap<(usize, usize), Vec<BridgeItem>>Bridge items keyed by (source_category, target_category). Sorted by descending bridge_strength within each pair.
Trait Implementations§
Source§impl Clone for CategoryGraph
impl Clone for CategoryGraph
Source§fn clone(&self) -> CategoryGraph
fn clone(&self) -> CategoryGraph
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 CategoryGraph
impl RefUnwindSafe for CategoryGraph
impl Send for CategoryGraph
impl Sync for CategoryGraph
impl Unpin for CategoryGraph
impl UnsafeUnpin for CategoryGraph
impl UnwindSafe for CategoryGraph
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