pub struct GraphMetrics {
pub node_count: usize,
pub edge_count: usize,
pub connected_components: usize,
pub density: f32,
pub average_degree: f32,
pub max_degree: usize,
pub clustering_coefficient: f32,
pub diameter: Option<usize>,
pub node_type_distribution: HashMap<String, usize>,
pub edge_type_distribution: HashMap<String, usize>,
}Expand description
Graph metrics and statistics
Fields§
§node_count: usizeNumber of nodes
edge_count: usizeNumber of edges
connected_components: usizeNumber of connected components
density: f32Graph density
average_degree: f32Average degree
max_degree: usizeMaximum degree
clustering_coefficient: f32Clustering coefficient
diameter: Option<usize>Diameter (longest shortest path)
node_type_distribution: HashMap<String, usize>Node type distribution
edge_type_distribution: HashMap<String, usize>Edge type distribution
Trait Implementations§
Source§impl Clone for GraphMetrics
impl Clone for GraphMetrics
Source§fn clone(&self) -> GraphMetrics
fn clone(&self) -> GraphMetrics
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 GraphMetrics
impl Debug for GraphMetrics
Source§impl<'de> Deserialize<'de> for GraphMetrics
impl<'de> Deserialize<'de> for GraphMetrics
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 GraphMetrics
impl RefUnwindSafe for GraphMetrics
impl Send for GraphMetrics
impl Sync for GraphMetrics
impl Unpin for GraphMetrics
impl UnwindSafe for GraphMetrics
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