diff --git a/src/vendor/cigraph/src/games/citations.c b/src/vendor/cigraph/src/games/citations.c index 4c55b237e4..cdb90be950 100644 --- a/src/vendor/cigraph/src/games/citations.c +++ b/src/vendor/cigraph/src/games/citations.c @@ -275,7 +275,7 @@ igraph_error_t igraph_cited_type_game(igraph_t *graph, igraph_integer_t nodes, } if (nodes == 0) { - igraph_empty(graph, 0, directed); + IGRAPH_CHECK(igraph_empty(graph, 0, directed)); return IGRAPH_SUCCESS; } diff --git a/src/vendor/cigraph/src/games/recent_degree.c b/src/vendor/cigraph/src/games/recent_degree.c index c4d101a8a3..d62086bed3 100644 --- a/src/vendor/cigraph/src/games/recent_degree.c +++ b/src/vendor/cigraph/src/games/recent_degree.c @@ -101,8 +101,8 @@ igraph_error_t igraph_recent_degree_game(igraph_t *graph, igraph_integer_t nodes IGRAPH_ERRORF("The zero appeal cannot be negative, got %g.", IGRAPH_EINVAL, zero_appeal); } - if (nodes == 0) { - igraph_empty(graph, 0, directed); + if (no_of_nodes == 0) { + IGRAPH_CHECK(igraph_empty(graph, 0, directed)); return IGRAPH_SUCCESS; } @@ -254,10 +254,6 @@ igraph_error_t igraph_recent_degree_aging_game(igraph_t *graph, igraph_dqueue_int_t history; igraph_bool_t have_outseq = outseq && igraph_vector_int_size(outseq) > 0; - if (no_of_nodes == 0) { - igraph_empty(graph, 0, directed); - return IGRAPH_SUCCESS; - } if (no_of_nodes < 0) { IGRAPH_ERRORF("Number of nodes should not be negative, got %" IGRAPH_PRId ".", IGRAPH_EINVAL, no_of_nodes); } @@ -278,6 +274,11 @@ igraph_error_t igraph_recent_degree_aging_game(igraph_t *graph, IGRAPH_ERRORF("The zero appeal cannot be negative, got %g.", IGRAPH_EINVAL, zero_appeal); } + if (no_of_nodes == 0) { + IGRAPH_CHECK(igraph_empty(graph, 0, directed)); + return IGRAPH_SUCCESS; + } + if (!have_outseq) { no_of_neighbors = m; IGRAPH_SAFE_MULT(no_of_nodes - 1, no_of_neighbors, &no_of_edges); diff --git a/src/vendor/igraph_version.h b/src/vendor/igraph_version.h index 8264e95cb9..950cf617f6 100644 --- a/src/vendor/igraph_version.h +++ b/src/vendor/igraph_version.h @@ -28,11 +28,11 @@ __BEGIN_DECLS -#define IGRAPH_VERSION "0.10.13-137-g82d35eebd" +#define IGRAPH_VERSION "0.10.13-138-g5cd6552bf" #define IGRAPH_VERSION_MAJOR 0 #define IGRAPH_VERSION_MINOR 10 #define IGRAPH_VERSION_PATCH 13 -#define IGRAPH_VERSION_PRERELEASE "137-g82d35eebd" +#define IGRAPH_VERSION_PRERELEASE "138-g5cd6552bf" IGRAPH_EXPORT void igraph_version(const char **version_string, int *major,