pub struct RandomWalkResult { /* private fields */ }Expand description
Result of a random-walk computation.
Implementations§
Source§impl RandomWalkResult
impl RandomWalkResult
Sourcepub fn max_path_length(&self) -> usize
pub fn max_path_length(&self) -> usize
Maximum number of edges requested per walk.
Sourcepub fn paths(&self) -> Result<VertexIds<'_>>
pub fn paths(&self) -> Result<VertexIds<'_>>
Dense row-major vertex path matrix.
The row count is the number of start vertices and each row contains
max_path_length() + 1 vertex ids. Native cuGraph uses a negative
sentinel in later columns when a walk terminates early.
Sourcepub fn weights(&self) -> Result<Option<ScoreValues<'_>>>
pub fn weights(&self) -> Result<Option<ScoreValues<'_>>>
Dense row-major edge-weight matrix, if the input graph had weights.
Each row contains max_path_length() edge weights. Unweighted graphs
produce no native weight column and return None.
Trait Implementations§
Source§impl Debug for RandomWalkResult
impl Debug for RandomWalkResult
Source§impl Drop for RandomWalkResult
impl Drop for RandomWalkResult
Auto Trait Implementations§
impl !RefUnwindSafe for RandomWalkResult
impl !Send for RandomWalkResult
impl !Sync for RandomWalkResult
impl !UnwindSafe for RandomWalkResult
impl Freeze for RandomWalkResult
impl Unpin for RandomWalkResult
impl UnsafeUnpin for RandomWalkResult
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