From e8c4828e9e9459f66c0b22ea379f70c4c6c3ba23 Mon Sep 17 00:00:00 2001 From: Andrew Guschin Date: Sun, 13 Aug 2023 16:05:26 +0400 Subject: Iterator now stores state inside struct --- nauty/geng.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 nauty/geng.h (limited to 'nauty/geng.h') diff --git a/nauty/geng.h b/nauty/geng.h new file mode 100644 index 0000000..751be5c --- /dev/null +++ b/nauty/geng.h @@ -0,0 +1,18 @@ +#include "gtools.h" +#include +#include + +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; +}; -- cgit v1.2.3