pub struct GraphMetrics {
pub num_nodes: usize,
pub num_edges: usize,
pub avg_degree: f64,
pub max_degree: usize,
pub min_degree: usize,
pub density: f64,
pub num_components: usize,
pub total_weight: f64,
pub avg_weight: f64,
pub min_weight: f64,
pub max_weight: f64,
pub graph_type: GraphType,
}Expand description
Graph metrics for analysis
Fields§
§num_nodes: usizeNumber of nodes
num_edges: usizeNumber of edges
avg_degree: f64Average node degree
max_degree: usizeMaximum node degree
min_degree: usizeMinimum node degree
density: f64Graph density (0.0 to 1.0)
num_components: usizeNumber of connected components
total_weight: f64Total weight of all edges
avg_weight: f64Average edge weight
min_weight: f64Minimum edge weight
max_weight: f64Maximum edge weight
graph_type: GraphTypeGraph type
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 moreAuto Trait Implementations§
impl Freeze for GraphMetrics
impl RefUnwindSafe for GraphMetrics
impl Send for GraphMetrics
impl Sync for GraphMetrics
impl Unpin for GraphMetrics
impl UnsafeUnpin 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