pub struct GraphStats {
pub total_nodes: u64,
pub total_edges: u64,
pub nodes_by_kind: Vec<(String, u64)>,
pub edges_by_kind: Vec<(String, u64)>,
}Expand description
Aggregate counts for a branch’s graph, returned by graph_stats.
First-call orientation for an agent: how big is the graph, what kinds of
symbols dominate, how connected is it.
Fields§
§total_nodes: u64§total_edges: u64§nodes_by_kind: Vec<(String, u64)>(kind, count) pairs, sorted by count descending.
edges_by_kind: Vec<(String, u64)>(kind, count) pairs, sorted by count descending.
Auto 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