pub struct NeighborSampleResult {
pub layers: Vec<Vec<VertexId>>,
pub edges: Vec<Vec<(VertexId, VertexId)>>,
}Expand description
Result of k-hop neighborhood sampling.
Fields§
§layers: Vec<Vec<VertexId>>Sampled vertices at each layer, from outermost (k-hop) to innermost
(seed). layers[0] are the seeds, layers[1] are their sampled
neighbors, etc.
edges: Vec<Vec<(VertexId, VertexId)>>Edges connecting each layer pair. edges[i] contains (src, dst)
pairs where src is in layers[i+1] and dst is in layers[i].
Vertex ids are original graph ids.
Trait Implementations§
Source§impl Clone for NeighborSampleResult
impl Clone for NeighborSampleResult
Source§fn clone(&self) -> NeighborSampleResult
fn clone(&self) -> NeighborSampleResult
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 NeighborSampleResult
impl Debug for NeighborSampleResult
Source§impl PartialEq for NeighborSampleResult
impl PartialEq for NeighborSampleResult
impl Eq for NeighborSampleResult
impl StructuralPartialEq for NeighborSampleResult
Auto Trait Implementations§
impl Freeze for NeighborSampleResult
impl RefUnwindSafe for NeighborSampleResult
impl Send for NeighborSampleResult
impl Sync for NeighborSampleResult
impl Unpin for NeighborSampleResult
impl UnsafeUnpin for NeighborSampleResult
impl UnwindSafe for NeighborSampleResult
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