pub struct GraphStats {
pub num_vertices: u64,
pub num_edges: u64,
pub label_counts: BTreeMap<String, u64>,
pub avg_out_degree: f64,
pub degree_distribution: BTreeMap<u64, u64>,
pub min_timestamp: Option<f64>,
pub max_timestamp: Option<f64>,
pub graph_name: String,
pub vertex_label_counts: BTreeMap<String, u64>,
pub label_degree_map: BTreeMap<String, f64>,
}Expand description
Graph-level statistics for heuristic cardinality estimation.
Fields§
§num_vertices: u64§num_edges: u64§label_counts: BTreeMap<String, u64>§avg_out_degree: f64§degree_distribution: BTreeMap<u64, u64>§min_timestamp: Option<f64>§max_timestamp: Option<f64>§graph_name: String§vertex_label_counts: BTreeMap<String, u64>§label_degree_map: BTreeMap<String, f64>Implementations§
Source§impl GraphStats
impl GraphStats
Sourcepub fn label_selectivity(&self, label: Option<&str>) -> f64
pub fn label_selectivity(&self, label: Option<&str>) -> f64
Fraction of edges matching label. None is the wildcard label
(full edge population).
Sourcepub fn edge_density(&self) -> f64
pub fn edge_density(&self) -> f64
Edge density |E| / |V|^2.
Trait Implementations§
Source§impl Clone for GraphStats
impl Clone for GraphStats
Source§fn clone(&self) -> GraphStats
fn clone(&self) -> GraphStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GraphStats
impl Debug for GraphStats
Source§impl Default for GraphStats
impl Default for GraphStats
Source§fn default() -> GraphStats
fn default() -> GraphStats
Returns the “default value” for a type. Read more
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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