pub struct GraphSample {
pub uniform_nodes: HashSet<String>,
pub degree_based_nodes: HashSet<String>,
pub uniform_edges: HashSet<(String, String)>,
pub weight_based_edges: HashSet<(String, String)>,
pub random_walk_subgraph: SampledSubgraph,
pub bfs_subgraph: SampledSubgraph,
pub forest_fire_subgraph: SampledSubgraph,
pub reservoir_nodes: Vec<String>,
pub reservoir_edges: Vec<(String, String)>,
}Expand description
Comprehensive graph sample containing multiple sampling strategies
Fields§
§uniform_nodes: HashSet<String>§degree_based_nodes: HashSet<String>§uniform_edges: HashSet<(String, String)>§weight_based_edges: HashSet<(String, String)>§random_walk_subgraph: SampledSubgraph§bfs_subgraph: SampledSubgraph§forest_fire_subgraph: SampledSubgraph§reservoir_nodes: Vec<String>§reservoir_edges: Vec<(String, String)>Trait Implementations§
Source§impl Clone for GraphSample
impl Clone for GraphSample
Source§fn clone(&self) -> GraphSample
fn clone(&self) -> GraphSample
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 moreAuto Trait Implementations§
impl Freeze for GraphSample
impl RefUnwindSafe for GraphSample
impl Send for GraphSample
impl Sync for GraphSample
impl Unpin for GraphSample
impl UnsafeUnpin for GraphSample
impl UnwindSafe for GraphSample
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