pub struct AlgorithmWrapper;Expand description
Safe wrapper for algorithms exposed to C++
Implementations§
Source§impl AlgorithmWrapper
impl AlgorithmWrapper
Sourcepub fn bfs_traverse_cpp(graph: &FFIGraph, start: u32) -> Vec<u32>
pub fn bfs_traverse_cpp(graph: &FFIGraph, start: u32) -> Vec<u32>
BFS traversal accessible from C++
Sourcepub fn pagerank_cpp(
graph: &FFIGraph,
iterations: u32,
damping_factor: f64,
) -> Vec<f64>
pub fn pagerank_cpp( graph: &FFIGraph, iterations: u32, damping_factor: f64, ) -> Vec<f64>
PageRank accessible from C++
Sourcepub fn triangle_count_cpp(graph: &FFIGraph) -> u64
pub fn triangle_count_cpp(graph: &FFIGraph) -> u64
Triangle counting accessible from C++
Sourcepub fn component_count_cpp(graph: &FFIGraph) -> u32
pub fn component_count_cpp(graph: &FFIGraph) -> u32
Component count accessible from C++
Sourcepub fn clustering_coefficient_cpp(graph: &FFIGraph) -> f64
pub fn clustering_coefficient_cpp(graph: &FFIGraph) -> f64
Clustering coefficient accessible from C++
Auto Trait Implementations§
impl Freeze for AlgorithmWrapper
impl RefUnwindSafe for AlgorithmWrapper
impl Send for AlgorithmWrapper
impl Sync for AlgorithmWrapper
impl Unpin for AlgorithmWrapper
impl UnwindSafe for AlgorithmWrapper
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