Skip to main content

amem_graph_get_edges

Function amem_graph_get_edges 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn amem_graph_get_edges( graph: *mut c_void, source_id: u64, target_ids: *mut u64, edge_types: *mut u8, weights: *mut f32, max_edges: u32, ) -> i32
Expand description

Get edges from a node. Returns edge count or error.

ยง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.