summaryrefslogtreecommitdiff
path: root/nauty/geng.h
blob: 751be5c9dde7af9fee34bdde3a95b66a7c111aa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "gtools.h"
#include <ucontext.h>
#include <stdbool.h>

struct geng_iterator
{
    ucontext_t geng_worker, geng_user;
    char geng_stack[1 << 20];
    int graph_size;
    bool generation_done;
    bool iteration_done;
    int batch_size;
    int batch_capacity;
    graph **batch;

    // TODO: remove
    graph *cur;
};