Skip to content

Commit

Permalink
vendor: Update vendored sources to igraph/igraph@26d3718
Browse files Browse the repository at this point in the history
refactor: do not use vector_get() in simple cycle finder
  • Loading branch information
krlmlr committed Jan 5, 2025
1 parent ae6cfb4 commit 4851711
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/vendor/cigraph/src/cycles/simple_cycles.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,15 +206,15 @@ static igraph_error_t igraph_i_simple_cycles_circuit(

if ((!state->directed &&
igraph_vector_int_size(&state->edge_stack) == 1 &&
igraph_vector_int_get(&state->edge_stack, 0) == WE)) {
VECTOR(state->edge_stack)[0] == WE)) {
// printf("Skipping cycle to prevent self-loop: \n");
continue;
}

// prevent duplicates in undirected graphs by forcing a direction for
// the closing edge
if ((!state->directed &&
igraph_vector_int_get(&state->edge_stack, 0) > WE)) {
VECTOR(state->edge_stack)[0] > WE)) {
// printf("Skipping cycle to prevent duplicates: \n");
continue;
}
Expand Down
4 changes: 2 additions & 2 deletions src/vendor/igraph_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@

__BEGIN_DECLS

#define IGRAPH_VERSION "0.10.13-158-gcd7bcd9d9"
#define IGRAPH_VERSION "0.10.13-159-g26d3718b3"
#define IGRAPH_VERSION_MAJOR 0
#define IGRAPH_VERSION_MINOR 10
#define IGRAPH_VERSION_PATCH 13
#define IGRAPH_VERSION_PRERELEASE "158-gcd7bcd9d9"
#define IGRAPH_VERSION_PRERELEASE "159-g26d3718b3"

IGRAPH_EXPORT void igraph_version(const char **version_string,
int *major,
Expand Down

0 comments on commit 4851711

Please sign in to comment.