Skip to main content

GraphDataSource

Trait GraphDataSource 

Source
pub trait GraphDataSource {
    // Required methods
    fn num_nodes(&self) -> usize;
    fn edges(&self) -> Vec<GraphEdge>;
}
Expand description

Provides the node/edge topology backing the graph for GDS table functions.

Implementors snapshot the graph at call time. Edges whose source or destination is u64::MAX (soft-deleted rows) are excluded.

Required Methods§

Source

fn num_nodes(&self) -> usize

Total number of nodes in the graph (at least max_offset + 1).

Source

fn edges(&self) -> Vec<GraphEdge>

All live edges of the graph.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§