Skip to main content

amem_graph_add_edge

Function amem_graph_add_edge 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn amem_graph_add_edge( graph: *mut c_void, source_id: u64, target_id: u64, edge_type: u8, weight: f32, ) -> i32
Expand description

Add an edge. Returns AMEM_OK or error code.

ยงSafety

The caller must ensure that all pointer arguments are valid and non-null (unless the function explicitly handles null pointers), and that any pointed-to data is valid for the expected type and lifetime.