pub struct LabelingResult { /* private fields */ }Expand description
Result of weakly or strongly connected components.
Weakly and strongly connected components return cugraph_labeling_result_t
with identical field layout, represented by this result type.
Implementations§
Source§impl LabelingResult
impl LabelingResult
Sourcepub fn vertex_ids(&self) -> Result<VertexIds<'_>>
pub fn vertex_ids(&self) -> Result<VertexIds<'_>>
Get vertex ids as a runtime-typed device array view.
Sourcepub fn labels(&self) -> Result<IntegerValues<'_>>
pub fn labels(&self) -> Result<IntegerValues<'_>>
Get component labels as a runtime-typed integer device array view.
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 with "vertex" and "label" columns.
Each "label" is mapped to the minimum vertex id of its component to
guarantee deterministic output across runs.
Trait Implementations§
Source§impl Debug for LabelingResult
impl Debug for LabelingResult
Source§impl Drop for LabelingResult
impl Drop for LabelingResult
Auto Trait Implementations§
impl !RefUnwindSafe for LabelingResult
impl !Send for LabelingResult
impl !Sync for LabelingResult
impl !UnwindSafe for LabelingResult
impl Freeze for LabelingResult
impl Unpin for LabelingResult
impl UnsafeUnpin for LabelingResult
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