pub struct GraphAnalysis {
pub node_count: usize,
pub edge_count: usize,
pub depth: usize,
pub width: usize,
pub source_nodes: Vec<String>,
pub sink_nodes: Vec<String>,
pub avg_connections_per_node: f64,
pub has_cycles: bool,
}Expand description
Analysis results for a graph
Fields§
§node_count: usizeTotal number of nodes
edge_count: usizeTotal number of edges
depth: usizeMaximum depth (longest path from source to sink)
width: usizeMaximum width (max nodes at same level)
source_nodes: Vec<String>Source nodes (no incoming edges)
sink_nodes: Vec<String>Sink nodes (no outgoing edges)
avg_connections_per_node: f64Average connections per node
has_cycles: boolWhether the graph has cycles
Implementations§
Trait Implementations§
Source§impl Clone for GraphAnalysis
impl Clone for GraphAnalysis
Source§fn clone(&self) -> GraphAnalysis
fn clone(&self) -> GraphAnalysis
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 GraphAnalysis
impl RefUnwindSafe for GraphAnalysis
impl Send for GraphAnalysis
impl Sync for GraphAnalysis
impl Unpin for GraphAnalysis
impl UnwindSafe for GraphAnalysis
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