pub struct GraphStats {Show 13 fields
pub nodes: usize,
pub edges: usize,
pub density: f64,
pub weakly_connected_components: usize,
pub largest_component_size: usize,
pub scc_count: usize,
pub nontrivial_scc_count: usize,
pub diamond_count: usize,
pub bridge_count: usize,
pub transitive_edge_count: usize,
pub max_chain_depth: usize,
pub chain_count: usize,
pub dead_node_count: usize,
}Expand description
Overall graph statistics.
Fields§
§nodes: usize§edges: usize§density: f64Edge density: edges / (nodes × (nodes − 1)); 0.0 for graphs with fewer than 2 nodes.
weakly_connected_components: usize§largest_component_size: usize§scc_count: usize§nontrivial_scc_count: usizeNumber of strongly connected components with more than one node (actual circular-dependency clusters).
diamond_count: usize§bridge_count: usizeNumber of bridge edges whose removal would disconnect the graph.
transitive_edge_count: usizeNumber of redundant transitive edges (A→C where A→B→C already exists).
max_chain_depth: usizeDepth (edge count) of the longest import chain.
chain_count: usizeTotal number of import chains at or exceeding the depth threshold.
dead_node_count: usizeNumber of nodes with no inbound edges (unreachable or potentially dead code).
Trait Implementations§
Source§impl Debug for GraphStats
impl Debug for GraphStats
Source§impl JsonSchema for GraphStats
impl JsonSchema for GraphStats
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. 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> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.