pub struct GraphAnalysis {
pub node_count: usize,
pub edge_count: usize,
pub has_cycle: bool,
pub depth: usize,
pub unreachable: Vec<String>,
}Expand description
Output of CompiledGraph::analyze.
Fields§
§node_count: usizeNumber of registered nodes (excludes the synthetic __END__).
edge_count: usizeNumber of static edges declared on the graph.
has_cycle: booltrue if the static edge graph contains a cycle reachable from
the start node.
depth: usizeLongest path from the start node to any reachable node, measured
in edges. 0 if the graph contains a cycle (depth is undefined
for non-DAGs) or has no start node.
unreachable: Vec<String>Nodes registered on the graph but not reachable from the start via static edges. Sorted alphabetically.
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 (const: unstable) · 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 GraphAnalysis
impl Debug for GraphAnalysis
Source§impl PartialEq for GraphAnalysis
impl PartialEq for GraphAnalysis
Source§fn eq(&self, other: &GraphAnalysis) -> bool
fn eq(&self, other: &GraphAnalysis) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for GraphAnalysis
impl StructuralPartialEq for GraphAnalysis
Auto Trait Implementations§
impl Freeze for GraphAnalysis
impl RefUnwindSafe for GraphAnalysis
impl Send for GraphAnalysis
impl Sync for GraphAnalysis
impl Unpin for GraphAnalysis
impl UnsafeUnpin 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