pub type igraph_motifs_handler_t = Option<unsafe extern "C" fn(graph: *const igraph_t, vids: *const igraph_vector_int_t, isoclass: igraph_int_t, extra: *mut c_void) -> igraph_error_t>;Expand description
\typedef igraph_motifs_handler_t \brief Callback type for \c igraph_motifs_randesu_callback.
\ref igraph_motifs_randesu_callback() calls a specified callback function whenever a new motif is found during a motif search. This callback function must be of type \c igraph_motifs_handler_t. It has the following arguments:
\param graph The graph that that algorithm is working on. Of course this must not be modified. \param vids The IDs of the vertices in the motif that has just been found. This vector is owned by the motif search algorithm, so do not modify or destroy it; make a copy of it if you need it later. \param isoclass The isomorphism class of the motif that has just been found. Use \ref igraph_graph_count() to find the maximum possible isoclass for graphs of a given size. See \ref igraph_isoclass and \ref igraph_isoclass_subgraph for more information. \param extra The extra argument that was passed to \ref igraph_motifs_randesu_callback(). \return \c IGRAPH_SUCCESS to continue the motif search, \c IGRAPH_STOP to stop the motif search and return to the caller normally. Any other return value is interpreted as an igraph error code, which will terminate the search and return the same error code to the caller.
\sa \ref igraph_motifs_randesu_callback()
Aliased Type§
pub enum igraph_motifs_handler_t {
None,
Some(unsafe extern "C" fn(*const igraph_t, *const igraph_vector_int_t, i64, *mut c_void) -> u32),
}