SHA256
1
0
forked from pool/polymake
polymake/bliss077.patch

36 lines
1.3 KiB
Diff
Raw Normal View History

References: https://polymake.org/downloads/bliss077.patch
---
bundled/bliss/apps/graph/src/GraphIso.cc | 10 ++++++++++
1 file changed, 10 insertions(+)
Index: polymake-4.4/bundled/bliss/apps/graph/src/GraphIso.cc
===================================================================
--- polymake-4.4.orig/bundled/bliss/apps/graph/src/GraphIso.cc
+++ polymake-4.4/bundled/bliss/apps/graph/src/GraphIso.cc
@@ -18,6 +18,9 @@
#include <cstring>
#include <cstddef> // needed for gcc 4.9, see http://gcc.gnu.org/gcc-4.9/porting_to.html
#include <bliss/graph.hh>
+#if BLISS_VERSION_MAJOR > 0 || BLISS_VERSION_MINOR >= 76
+#include <bliss/digraph.hh>
+#endif
#include "polymake/graph/GraphIso.h"
#include "polymake/permutations.h"
@@ -129,7 +132,14 @@ void GraphIso::finalize(bool gather_auto
const unsigned int *perm;
if (gather_automorphisms) {
n_autom = 0;
+#if BLISS_VERSION_MAJOR > 0 || BLISS_VERSION_MINOR >= 76
+ auto aut_fun = [this](unsigned int nn, const unsigned int* aut) {
+ impl::store_autom(this, nn, aut);
+ };
+ perm = p_impl->src_graph->canonical_form(stats, aut_fun);
+#else
perm = p_impl->src_graph->canonical_form(stats, &impl::store_autom, this);
+#endif
} else {
perm = p_impl->src_graph->canonical_form(stats, nullptr, nullptr);
}