Skip to content

Commit

Permalink
math/rankwidth: Fix build with new version igraph
Browse files Browse the repository at this point in the history
PR:		269835
Reported by:	wen@
Approved by:	maintainer
  • Loading branch information
wenheping committed Feb 27, 2023
1 parent dbda515 commit f3ed780
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions math/rankwidth/Makefile
@@ -1,5 +1,6 @@
PORTNAME= rankwidth # Also known as: rw
PORTVERSION= 0.9
PORTREVISION= 1
CATEGORIES= math
MASTER_SITES= SF/${PORTNAME}/
DISTNAME= rw-${PORTVERSION}
Expand Down
11 changes: 11 additions & 0 deletions 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)
{

0 comments on commit f3ed780

Please sign in to comment.