| igraph Reference Manual |
|---|
int igraph_subisomorphic_function_vf2(const igraph_t *graph1, const igraph_t *graph2, igraph_vector_t *map12, igraph_vector_t *map21, igraph_isohandler_t *function, void *arg);
This function is the pair of igraph_isomorphic_function_vf2(),
for subgraph isomorphism problems. It searches for subgraphs of graph1 which are isomorphic to graph2. When it founds an
isomorphic mapping it calls the supplied callback function.
The mapping (and its inverse) and the additional arg argument
are supplied to the callback.
Arguments:
graph1: |
The first input graph, may be directed or undirected. This is supposed to be the larger graph. |
graph2: |
The second input graph, it must have the same
directedness as |
map12: |
Pointer to a vector or |
map21: |
Pointer to a vector ot |
function: |
A pointer to a function of type |
arg: |
Extra argument to supply to the callback |
Returns:
|
Error code. |
Time complexity: exponential.
<< 3.8. igraph_get_subisomorphisms_vf2 — Return all subgraph isomorphic mappings |
4. Functions for graphs with 3 or 4 vertices >> |