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

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,
}

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

impl Clone for GraphStatistic[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Display for GraphStatistic[src]

impl MallocSizeOf for GraphStatistic[src]

impl Serialize for GraphStatistic[src]

impl<'de> Deserialize<'de> for GraphStatistic[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]