pub struct ConnectivityAnalysis {
pub weakly_connected_components: usize,
pub strongly_connected_components: usize,
pub largest_scc_size: usize,
pub graph_density: f64,
pub average_clustering: f64,
pub global_clustering: f64,
pub average_path_length: Option<f64>,
pub diameter: Option<usize>,
pub is_acyclic: bool,
}Expand description
Graph connectivity and component analysis
Fields§
§weakly_connected_components: usizeNumber of weakly connected components
strongly_connected_components: usizeNumber of strongly connected components
largest_scc_size: usizeSize of largest strongly connected component
graph_density: f64Graph density (actual edges / possible edges)
average_clustering: f64Average clustering coefficient
global_clustering: f64Global clustering coefficient (transitivity)
average_path_length: Option<f64>Average path length (in largest component)
diameter: Option<usize>Graph diameter (longest shortest path)
is_acyclic: boolIs the graph acyclic (DAG)
Trait Implementations§
Source§impl Clone for ConnectivityAnalysis
impl Clone for ConnectivityAnalysis
Source§fn clone(&self) -> ConnectivityAnalysis
fn clone(&self) -> ConnectivityAnalysis
Returns a duplicate of the value. Read more
1.0.0 · 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 ConnectivityAnalysis
impl Debug for ConnectivityAnalysis
Source§impl Default for ConnectivityAnalysis
impl Default for ConnectivityAnalysis
Source§fn default() -> ConnectivityAnalysis
fn default() -> ConnectivityAnalysis
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConnectivityAnalysis
impl<'de> Deserialize<'de> for ConnectivityAnalysis
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ConnectivityAnalysis
impl PartialEq for ConnectivityAnalysis
Source§impl Serialize for ConnectivityAnalysis
impl Serialize for ConnectivityAnalysis
impl StructuralPartialEq for ConnectivityAnalysis
Auto Trait Implementations§
impl Freeze for ConnectivityAnalysis
impl RefUnwindSafe for ConnectivityAnalysis
impl Send for ConnectivityAnalysis
impl Sync for ConnectivityAnalysis
impl Unpin for ConnectivityAnalysis
impl UnwindSafe for ConnectivityAnalysis
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more