Struct graphannis::graph::GraphStatistic[][src]

pub struct GraphStatistic {
    pub cyclic: bool,
    pub rooted_tree: bool,
    pub nodes: usize,
    pub avg_fan_out: f64,
    pub fan_out_99_percentile: usize,
    pub inverse_fan_out_99_percentile: usize,
    pub max_fan_out: usize,
    pub max_depth: usize,
    pub dfs_visit_ratio: f64,
}
Expand description

Some general statistical numbers specific to a graph component

Fields

cyclic: bool

True if the component contains any cycle.

rooted_tree: bool

True if the component consists of a rooted trees.

nodes: usize

Number of nodes in this graph storage (both source and target nodes).

avg_fan_out: f64

Average fan out.

fan_out_99_percentile: usize

Max fan-out of 99% of the data.

inverse_fan_out_99_percentile: usize

Max inverse fan-out of 99% of the data.

max_fan_out: usize

Maximal number of children of a node.

max_depth: usize

Maximum length from a root node to a terminal node.

dfs_visit_ratio: f64

Only valid for acyclic graphs: the average number of times a DFS will visit each node.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Deserialize this value from the given Serde deserializer. Read more

Formats the value using the given formatter. Read more

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.