pub struct GraphStatistics {
pub node_count: usize,
pub edge_count: usize,
pub avg_degree: f64,
pub avg_strength: f64,
pub node_counts: HashMap<String, usize>,
pub edge_counts: HashMap<String, usize>,
pub strength_distribution: HashMap<String, usize>,
}Expand description
Statistics about the graph.
Fields§
§node_count: usizeTotal number of nodes
edge_count: usizeTotal number of edges
avg_degree: f64Average degree (edges per node)
avg_strength: f64Average edge strength
node_counts: HashMap<String, usize>Node counts by type
edge_counts: HashMap<String, usize>Edge counts by relationship type
strength_distribution: HashMap<String, usize>Edge counts by strength classification
Trait Implementations§
Source§impl Clone for GraphStatistics
impl Clone for GraphStatistics
Source§fn clone(&self) -> GraphStatistics
fn clone(&self) -> GraphStatistics
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 moreSource§impl Debug for GraphStatistics
impl Debug for GraphStatistics
Source§impl<'de> Deserialize<'de> for GraphStatistics
impl<'de> Deserialize<'de> for GraphStatistics
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 GraphStatistics
impl RefUnwindSafe for GraphStatistics
impl Send for GraphStatistics
impl Sync for GraphStatistics
impl Unpin for GraphStatistics
impl UnwindSafe for GraphStatistics
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