pub struct GraphStats {
pub node_count: usize,
pub edge_count: usize,
pub canonical_count: usize,
pub variant_count: usize,
pub category_distribution: HashMap<String, usize>,
pub relationship_distribution: HashMap<String, usize>,
pub orphan_count: usize,
pub avg_degree: f32,
pub max_in_degree: usize,
pub max_out_degree: usize,
pub most_depended_on: Option<String>,
pub most_dependencies: Option<String>,
}Expand description
Comprehensive statistics about a graph.
Fields§
§node_count: usizeTotal number of nodes.
edge_count: usizeTotal number of edges.
canonical_count: usizeNumber of canonical nodes.
variant_count: usizeNumber of variant nodes.
category_distribution: HashMap<String, usize>Nodes per category.
relationship_distribution: HashMap<String, usize>Edges per relationship type.
orphan_count: usizeNodes without any edges (orphans).
avg_degree: f32Average edges per node (in + out).
max_in_degree: usizeMaximum in-degree (most dependencies).
max_out_degree: usizeMaximum out-degree (most dependents).
most_depended_on: Option<String>Node with highest in-degree.
most_dependencies: Option<String>Node with highest out-degree.
Trait Implementations§
Source§impl Clone for GraphStats
impl Clone for GraphStats
Source§fn clone(&self) -> GraphStats
fn clone(&self) -> GraphStats
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 GraphStats
impl Debug for GraphStats
Source§impl<'de> Deserialize<'de> for GraphStats
impl<'de> Deserialize<'de> for GraphStats
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 GraphStats
impl RefUnwindSafe for GraphStats
impl Send for GraphStats
impl Sync for GraphStats
impl Unpin for GraphStats
impl UnsafeUnpin for GraphStats
impl UnwindSafe for GraphStats
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