aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/rw-igraph-0.10.patch
blob: 3544196660054ed3c3a1facd35fc6160ebc96422 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Fix the build when using igraph >= 0.10.
Retrieved from: https://sourceforge.net/p/rankwidth/tickets/2/.

--- rw-0.9/simplerw.c.newigraph 2017-02-14 00:20:35.000000000 +0900
+++ rw-0.9/simplerw.c   2022-09-11 19:39:47.033917305 +0900
@@ -134,7 +134,11 @@ int read_graph(const char *format, const
 		igraph_destroy(&igraph);
 		return(-1);
 	}
+#if (IGRAPH_VERSION_MAJOR >= 1) || ((IGRAPH_VERSION_MAJOR == 0) && (IGRAPH_VERSION_MINOR >= 10))
+	igraph_get_adjacency(&igraph, &imatrix, IGRAPH_GET_ADJACENCY_BOTH, NULL, IGRAPH_LOOPS_ONCE);
+#else
 	igraph_get_adjacency(&igraph, &imatrix, IGRAPH_GET_ADJACENCY_BOTH, 0);
+#endif
 	igraph_destroy(&igraph);
 	if(igraph_matrix_nrow(&imatrix) > MAX_VERTICES)
 	{
2-02-11tests: Pass #:guile to 'computed-file' & co....Ludovic Courtès 2021-11-27gexp: 'file-append' correctly handles bases without an expander....Ludovic Courtès 2021-11-17Merge branch 'master' into core-updates-frozenLudovic Courtès 2021-11-16tests: Factorize 'file=?'....Ludovic Courtès 2021-09-25gexp: Leave grafting as is when lowering allowed/disallowed references....Ludovic Courtès 2021-07-18Merge branch 'master' into core-updatesLudovic Courtès 2021-06-30guix: gexp: Define gexp->approximate-sexp....Maxime Devos 2021-03-30gexp: Add 'sexp->gexp'....Ludovic Courtès 2021-03-03gexp: #:references-graphs refers to non-native derivations....Ludovic Courtès 2021-02-23gexp: Micro-optimize 'gexp->sexp' and 'lower-inputs'....Ludovic Courtès 2021-02-23gexp: 'gexp-inputs' returns both native and non-native inputs....Ludovic Courtès 2021-02-23gexp: 'gexp-inputs' returns a list of <gexp-input> records....Ludovic Courtès 2020-12-15store-copy: 'populate-store' can optionally deduplicate files....Ludovic Courtès 2020-12-15store-copy: 'populate-store' resets timestamps....Ludovic Courtès 2020-11-05gexp: Warn when importing (guix config) or (ice-9 …)....Ludovic Courtès 2020-11-05gexp: Store the source code location in <gexp>....Ludovic Courtès 2020-05-25gexp: Fix expansion for (file-append (local-file ...) ...)....Ludovic Courtès 2020-05-25tests: Hide quoted (define-module ...) form from Geiser....Ludovic Courtès 2020-05-16gexp: Add 'let-system'....Ludovic Courtès 2020-03-12gexp: Add 'with-parameters'....Ludovic Courtès 2020-03-08gexp: Default to current target....Mathieu Othacehe 2020-01-04gexp: Add 'raw-derivation-file'....Ludovic Courtès 2019-12-18gexp: Allow character literals in GEXP->SEXP....Marius Bakke 2019-11-30gexp: 'local-file' properly resolves non-literal relative file names....Ludovic Courtès