ports/math/rankwidth/files/patch-simplerw.c
Wen Heping f3ed780a4d math/rankwidth: Fix build with new version igraph
PR:		269835
Reported by:	wen@
Approved by:	maintainer
2023-02-28 06:15:28 +08:00

11 lines
430 B
C

--- 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)
{