pub struct GraphSummary {
pub directed: bool,
pub vcount: u32,
pub ecount: usize,
pub connected: bool,
pub component_count: u32,
pub density: Option<f64>,
pub min_degree: u32,
pub max_degree: u32,
pub has_loops: bool,
pub has_multiple: bool,
}Expand description
Result of graph_summary containing precomputed graph statistics.
Fields§
§directed: boolWhether the graph is directed.
vcount: u32Number of vertices.
ecount: usizeNumber of edges.
connected: boolWhether the graph is connected (weakly, for directed graphs).
component_count: u32Number of (weakly) connected components.
density: Option<f64>Edge density, or None for trivial graphs (0 or 1 vertex).
min_degree: u32Minimum degree across all vertices.
max_degree: u32Maximum degree across all vertices.
has_loops: boolWhether the graph has self-loops.
has_multiple: boolWhether the graph has multi-edges (parallel edges).
Trait Implementations§
Source§impl Clone for GraphSummary
impl Clone for GraphSummary
Source§fn clone(&self) -> GraphSummary
fn clone(&self) -> GraphSummary
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 GraphSummary
impl Debug for GraphSummary
Auto Trait Implementations§
impl Freeze for GraphSummary
impl RefUnwindSafe for GraphSummary
impl Send for GraphSummary
impl Sync for GraphSummary
impl Unpin for GraphSummary
impl UnsafeUnpin for GraphSummary
impl UnwindSafe for GraphSummary
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