2021-06-22 18:29:36 +02:00
|
|
|
References: https://polymake.org/downloads/bliss077.patch
|
|
|
|
|
2021-06-24 11:42:36 +02:00
|
|
|
polymake 4.4 is a bit older than bliss 0.77 and so needs a patch to
|
|
|
|
get the compilation between the two going.
|
2021-06-22 18:29:36 +02:00
|
|
|
---
|
|
|
|
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);
|
|
|
|
}
|