pub struct Node2VecGraph {
pub adjacency: FxHashMap<u32, Vec<(u32, f32)>>,
pub transition_probs: FxHashMap<(u32, u32), Vec<(u32, f32)>>,
}Expand description
Structure to store the Node2Vec graph
§Fields
adjacency- The adjacency stored as an FxHashMap.transition_probs- The transition probabilities stored in a FxHashMap.
Fields§
§adjacency: FxHashMap<u32, Vec<(u32, f32)>>§transition_probs: FxHashMap<(u32, u32), Vec<(u32, f32)>>Implementations§
Trait Implementations§
Source§impl Clone for Node2VecGraph
impl Clone for Node2VecGraph
Source§fn clone(&self) -> Node2VecGraph
fn clone(&self) -> Node2VecGraph
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 moreAuto Trait Implementations§
impl Freeze for Node2VecGraph
impl RefUnwindSafe for Node2VecGraph
impl Send for Node2VecGraph
impl Sync for Node2VecGraph
impl Unpin for Node2VecGraph
impl UnsafeUnpin for Node2VecGraph
impl UnwindSafe for Node2VecGraph
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> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
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