From f3ed780a4dec6a684bda1d8b2eb23ae28a4fbf13 Mon Sep 17 00:00:00 2001 From: Wen Heping Date: Tue, 28 Feb 2023 06:12:58 +0800 Subject: math/rankwidth: Fix build with new version igraph PR: 269835 Reported by: wen@ Approved by: maintainer --- math/rankwidth/files/patch-simplerw.c | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 math/rankwidth/files/patch-simplerw.c (limited to 'math/rankwidth/files/patch-simplerw.c') diff --git a/math/rankwidth/files/patch-simplerw.c b/math/rankwidth/files/patch-simplerw.c new file mode 100644 index 000000000000..378f8e7c47a3 --- /dev/null +++ b/math/rankwidth/files/patch-simplerw.c @@ -0,0 +1,11 @@ +--- simplerw.c.orig 2023-02-26 14:01:13 UTC ++++ simplerw.c +@@ -134,7 +134,7 @@ int read_graph(const char *format, const char * filena + igraph_destroy(&igraph); + return(-1); + } +- igraph_get_adjacency(&igraph, &imatrix, IGRAPH_GET_ADJACENCY_BOTH, 0); ++ igraph_get_adjacency(&igraph, &imatrix, IGRAPH_GET_ADJACENCY_BOTH, NULL, IGRAPH_LOOPS_ONCE); + igraph_destroy(&igraph); + if(igraph_matrix_nrow(&imatrix) > MAX_VERTICES) + { -- cgit v1.2.3