Yes, this patch will fix compilation and will restore the old behaviour. The value chosen for the loops parameter will only make a difference if the graph has self-loops (i.e. it is non-simple), so any choice is fine here.
To find out how to update code for igraph 0.10, your first stop should be the changelog, which should list all breaking changes. If anything is missing, let us know and we'll add it. https://github.com/igraph/igraph/blob/master/CHANGELOG.md
I noticed that this program attempts to check error codes returned by igraph functions. However, the default behaviour on error is to abort(), so there is no point in doing this unless the error handler is changed to something else.
Should the maintainer want to convert this code into an igraph function and include it in igraph itself, the contribution would be welcome. Just let us know.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
So looking at the relevant changes on igraph:
I think the following change should do the same behavior as before:
igraph maintainer here.
Yes, this patch will fix compilation and will restore the old behaviour. The value chosen for the loops parameter will only make a difference if the graph has self-loops (i.e. it is non-simple), so any choice is fine here.
To find out how to update code for igraph 0.10, your first stop should be the changelog, which should list all breaking changes. If anything is missing, let us know and we'll add it. https://github.com/igraph/igraph/blob/master/CHANGELOG.md
I noticed that this program attempts to check error codes returned by igraph functions. However, the default behaviour on error is to
abort()
, so there is no point in doing this unless the error handler is changed to something else.Should the maintainer want to convert this code into an igraph function and include it in igraph itself, the contribution would be welcome. Just let us know.