pub struct KCoreResult { /* private fields */ }Expand description
Result of a k-core extraction.
Provides source and destination vertex ids plus optional edge weights.
Freed on drop via cugraph_k_core_result_free.
Implementations§
Source§impl KCoreResult
impl KCoreResult
Sourcepub fn destinations(&self) -> Result<VertexIds<'_>>
pub fn destinations(&self) -> Result<VertexIds<'_>>
Get destination vertex ids.
Sourcepub fn weights(&self) -> Result<Option<ScoreValues<'_>>>
pub fn weights(&self) -> Result<Option<ScoreValues<'_>>>
Get optional edge weights.
Sourcepub fn to_dataframe(&self, runtime: &Runtime) -> Result<DataFrame>
pub fn to_dataframe(&self, runtime: &Runtime) -> Result<DataFrame>
Convert this result to a cudf DataFrame.
Returns "source" and "destination" columns, plus "weight" when
the native result contains an edge-weight column.
Trait Implementations§
Source§impl Debug for KCoreResult
impl Debug for KCoreResult
Source§impl Drop for KCoreResult
impl Drop for KCoreResult
Auto Trait Implementations§
impl !RefUnwindSafe for KCoreResult
impl !Send for KCoreResult
impl !Sync for KCoreResult
impl !UnwindSafe for KCoreResult
impl Freeze for KCoreResult
impl Unpin for KCoreResult
impl UnsafeUnpin for KCoreResult
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