| 1 | |
| 2 | #ifndef CLIQUER_H |
| 3 | #define CLIQUER_Hcxx . . $ `src/cliques/cliquer/cliquer.h:3:9`! |
| 4 | |
| 5 | #include <string.h> |
| 6 | |
| 7 | /* This is an igraph-specific modification to cliquer. |
| 8 | * We use a 64-bit CLIQUER_LARGE_INT (even on 32-bit systems) in places |
| 9 | * which are prone to overflow. Since cliquer indicates interruption by |
| 10 | * returning -1 times the clique count, the effect of overflow is that |
| 11 | * it returns a partial (i.e. incorrect) result without warning. */ |
| 12 | #include <stdint.h> |
| 13 | #ifndef CLIQUER_LARGE_INT |
| 14 | #define CLIQUER_LARGE_INTcxx . . $ `src/cliques/cliquer/cliquer.h:14:9`! int64_t |
| 15 | #endif |
| 16 | |
| 17 | #include "set.h"cxx . . $ `<file>/src/cliques/cliquer/set.h`/ |
| 18 | #include "graph.h"cxx . . $ `<file>/src/cliques/cliquer/graph.h`/ |
| 19 | #include "reorder.h"cxx . . $ `<file>/src/cliques/cliquer/reorder.h`/ |
| 20 | |
| 21 | typedef struct _clique_optionscxx . . $ _clique_options# clique_optionscxx . . $ clique_options#; |
| 22 | struct _clique_optionscxx . . $ _clique_options# { |
| 23 | int *(*reorder_functioncxx . . $ _clique_options#reorder_function.)(graph_tcxx . . $ graph_t# *, booleancxx . . $ `src/cliques/cliquer/misc.h:14:9`!); |
| 24 | int *reorder_mapcxx . . $ _clique_options#reorder_map.; |
| 25 | |
| 26 | /* arguments: level, n, max, user_time, system_time, opts */ |
| 27 | booleancxx . . $ `src/cliques/cliquer/misc.h:14:9`! (*time_functioncxx . . $ _clique_options#time_function.)(int,int,int,int,double,double, |
| 28 | clique_optionscxx . . $ clique_options# *); |
| 29 | FILEcxx . . $ FILE# *outputcxx . . $ _clique_options#output.; |
| 30 | |
| 31 | igraph_error_tcxx . . $ igraph_error_t# (*user_functioncxx . . $ _clique_options#user_function.)(set_tcxx . . $ set_t#,graph_tcxx . . $ graph_t# *,clique_optionscxx . . $ clique_options# *); |
| 32 | void *user_datacxx . . $ _clique_options#user_data.; |
| 33 | set_tcxx . . $ set_t# *clique_listcxx . . $ _clique_options#clique_list.; |
| 34 | int clique_list_lengthcxx . . $ _clique_options#clique_list_length.; |
| 35 | }; |
| 36 | |
| 37 | /* Weighted clique functions */ |
| 38 | extern igraph_error_tcxx . . $ igraph_error_t# clique_max_weightcxx . . $ clique_max_weight(ecdd46c8db43f0d2).( |
| 39 | graph_tcxx . . $ graph_t# *g, clique_optionscxx . . $ clique_options# *opts, int *weight_found |
| 40 | ); |
| 41 | extern igraph_error_tcxx . . $ igraph_error_t# clique_find_singlecxx . . $ clique_find_single(e5e09949e6a97bc4).( |
| 42 | graph_tcxx . . $ graph_t# *g, int min_weight, int max_weight, booleancxx . . $ `src/cliques/cliquer/misc.h:14:9`! maximal, |
| 43 | clique_optionscxx . . $ clique_options# *opts, set_tcxx . . $ set_t# *clique |
| 44 | ); |
| 45 | extern igraph_error_tcxx . . $ igraph_error_t# clique_find_allcxx . . $ clique_find_all(f914aa0d7dc71ee5).( |
| 46 | graph_tcxx . . $ graph_t# *g, int req_weight, booleancxx . . $ `src/cliques/cliquer/misc.h:14:9`! exact, booleancxx . . $ `src/cliques/cliquer/misc.h:14:9`! maximal, |
| 47 | clique_optionscxx . . $ clique_options# *opts, int *num_found |
| 48 | ); |
| 49 | |
| 50 | /* Unweighted clique functions */ |
| 51 | #define clique_unweighted_max_sizecxx . . $ `src/cliques/cliquer/cliquer.h:51:9`! clique_unweighted_max_weight |
| 52 | extern igraph_error_tcxx . . $ igraph_error_t# clique_unweighted_max_weightcxx . . $ clique_unweighted_max_weight(ecdd46c8db43f0d2).( |
| 53 | graph_tcxx . . $ graph_t# *g, clique_optionscxx . . $ clique_options# *opts, int *weight_found |
| 54 | ); |
| 55 | extern igraph_error_tcxx . . $ igraph_error_t# clique_unweighted_find_singlecxx . . $ clique_unweighted_find_single(e5e09949e6a97bc4).( |
| 56 | graph_tcxx . . $ graph_t# *g, int min_size, int max_size, booleancxx . . $ `src/cliques/cliquer/misc.h:14:9`! maximal, |
| 57 | clique_optionscxx . . $ clique_options# *opts, set_tcxx . . $ set_t# *clique |
| 58 | ); |
| 59 | extern igraph_error_tcxx . . $ igraph_error_t# clique_unweighted_find_allcxx . . $ clique_unweighted_find_all(cd746063bb7c35aa).( |
| 60 | graph_tcxx . . $ graph_t# *g, int min_size, int max_size, booleancxx . . $ `src/cliques/cliquer/misc.h:14:9`! maximal, |
| 61 | clique_optionscxx . . $ clique_options# *opts, CLIQUER_LARGE_INTcxx . . $ int64_t# *num_found |
| 62 | ); |
| 63 | |
| 64 | /* Time printing functions */ |
| 65 | /* |
| 66 | extern boolean clique_print_time(int level, int i, int n, int max, |
| 67 | double cputime, double realtime, |
| 68 | clique_options *opts); |
| 69 | extern boolean clique_print_time_always(int level, int i, int n, int max, |
| 70 | double cputime, double realtime, |
| 71 | clique_options *opts); |
| 72 | */ |
| 73 | |
| 74 | /* Alternate spelling (let's be a little forgiving): */ |
| 75 | #define cliquer_optionscxx . . $ `src/cliques/cliquer/cliquer.h:75:9`! clique_options |
| 76 | #define cliquer_default_optionscxx . . $ `src/cliques/cliquer/cliquer.h:76:9`! clique_default_options |
| 77 | |
| 78 | #endif /* !CLIQUER_H */ |