pub struct GraphSummary {
pub entity_count: usize,
pub relationship_count: usize,
pub entity_types: HashMap<String, usize>,
pub relationship_types: HashMap<String, usize>,
pub most_connected: Vec<(String, usize)>,
}Expand description
Aggregate statistics about the knowledge graph.
Fields§
§entity_count: usizeTotal number of entities.
relationship_count: usizeTotal number of relationships.
entity_types: HashMap<String, usize>Count of entities by type.
relationship_types: HashMap<String, usize>Count of relationships by type.
most_connected: Vec<(String, usize)>Top entities by total connection count (name, count), descending.
Trait Implementations§
Source§impl Clone for GraphSummary
impl Clone for GraphSummary
Source§fn clone(&self) -> GraphSummary
fn clone(&self) -> GraphSummary
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 moreSource§impl Debug for GraphSummary
impl Debug for GraphSummary
Source§impl<'de> Deserialize<'de> for GraphSummary
impl<'de> Deserialize<'de> for GraphSummary
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GraphSummary
impl RefUnwindSafe for GraphSummary
impl Send for GraphSummary
impl Sync for GraphSummary
impl Unpin for GraphSummary
impl UnsafeUnpin for GraphSummary
impl UnwindSafe for GraphSummary
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