pub struct GraphStats {
pub node_count: usize,
pub edge_count: usize,
pub directed: bool,
pub min_degree: usize,
pub max_degree: usize,
pub avg_degree: f64,
}Expand description
Summary statistics for a Graph.
Fields§
§node_count: usizeNumber of nodes.
edge_count: usizeNumber of edges as reported by Graph::edge_count.
directed: boolWhether the graph is directed.
min_degree: usizeMinimum out-degree (or stored degree for undirected graphs).
max_degree: usizeMaximum out-degree (or stored degree for undirected graphs).
avg_degree: f64Average out-degree (or stored degree for undirected graphs).
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 moreAuto 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