igraph_cycle_handler_t

Type Alias igraph_cycle_handler_t 

Source
pub type igraph_cycle_handler_t = Option<unsafe extern "C" fn(vertices: *const igraph_vector_int_t, edges: *const igraph_vector_int_t, arg: *mut c_void) -> igraph_error_t>;
Expand description

\typedef igraph_cycle_handler_t \brief Type of cycle handler functions.

Callback type, called by \ref igraph_simple_cycles_callback() when a cycle is found.

\param vertices The vertices of the current cycle. Must not be modified. \param edges The edges of the current cycle. Must not be modified. \param arg The extra parameter passed to \ref igraph_simple_cycles_callback() \return Error code; \c IGRAPH_SUCCESS to continue the search or \c IGRAPH_STOP to stop the search without signaling an error.

Aliased Type§

pub enum igraph_cycle_handler_t {
    None,
    Some(unsafe extern "C" fn(*const igraph_vector_int_t, *const igraph_vector_int_t, *mut c_void) -> u32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*const igraph_vector_int_t, *const igraph_vector_int_t, *mut c_void) -> u32)

Some value of type T.