pub struct TableGraphOptions {
pub src_col: usize,
pub dst_col: usize,
pub weight_col: Option<usize>,
pub edge_id_col: Option<usize>,
pub properties: GraphProperties,
pub renumber: bool,
pub construction_policy: GraphConstructionPolicy,
}Fields§
§src_col: usizeZero-based column index for source vertex IDs.
dst_col: usizeZero-based column index for destination vertex IDs.
weight_col: Option<usize>Optional zero-based column index for edge weights.
edge_id_col: Option<usize>Optional zero-based column index for stable edge IDs.
properties: GraphPropertiesGraph properties (directed/undirected, multigraph).
renumber: boolWhether to renumber vertices into a contiguous zero-based index range.
construction_policy: GraphConstructionPolicyHigh-level graph-construction semantics to apply before crossing into libcugraph.
Implementations§
Source§impl TableGraphOptions
impl TableGraphOptions
Sourcepub fn new(src_col: usize, dst_col: usize) -> Self
pub fn new(src_col: usize, dst_col: usize) -> Self
Create options with source and destination column indices.
Defaults: no weight column, directed graph, renumber disabled, and Python-compatible construction semantics.
Sourcepub fn weight_col(self, col: usize) -> Self
pub fn weight_col(self, col: usize) -> Self
Set the weight column index.
Sourcepub fn edge_id_col(self, col: usize) -> Self
pub fn edge_id_col(self, col: usize) -> Self
Set the stable edge-ID column index.
Sourcepub fn properties(self, properties: GraphProperties) -> Self
pub fn properties(self, properties: GraphProperties) -> Self
Set graph properties.
Sourcepub fn construction_policy(self, policy: GraphConstructionPolicy) -> Self
pub fn construction_policy(self, policy: GraphConstructionPolicy) -> Self
Set graph-construction semantics for this high-level ingress path.
Trait Implementations§
Source§impl Clone for TableGraphOptions
impl Clone for TableGraphOptions
Auto Trait Implementations§
impl Freeze for TableGraphOptions
impl RefUnwindSafe for TableGraphOptions
impl Send for TableGraphOptions
impl Sync for TableGraphOptions
impl Unpin for TableGraphOptions
impl UnsafeUnpin for TableGraphOptions
impl UnwindSafe for TableGraphOptions
Blanket Implementations§
impl<T> Allocation for T
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