Skip to content

Commit

Permalink
vendor: Update vendored sources to igraph/igraph@82d35ee
Browse files Browse the repository at this point in the history
refactor: minor readability cleanup in matching functions
  • Loading branch information
krlmlr committed Jan 2, 2025
1 parent d485e2f commit fb2fed3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/vendor/cigraph/src/misc/matching.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ igraph_error_t igraph_is_matching(const igraph_t *graph,
}
}

if (types != 0) {
if (types) {
/* Matched vertices must be of different types */
for (i = 0; i < no_of_nodes; i++) {
j = VECTOR(*matching)[i];
Expand Down Expand Up @@ -180,7 +180,7 @@ igraph_error_t igraph_is_maximal_matching(const igraph_t *graph,

IGRAPH_VECTOR_INT_INIT_FINALLY(&neis, 0);

valid = 1;
valid = true;
for (i = 0; i < no_of_nodes; i++) {
j = VECTOR(*matching)[i];
if (j != -1) {
Expand All @@ -192,9 +192,9 @@ igraph_error_t igraph_is_maximal_matching(const igraph_t *graph,
n = igraph_vector_int_size(&neis);
for (j = 0; j < n; j++) {
if (VECTOR(*matching)[VECTOR(neis)[j]] == -1) {
if (types == 0 ||
if (types == NULL ||
VECTOR(*types)[i] != VECTOR(*types)[VECTOR(neis)[j]]) {
valid = 0; break;
valid = false; break;
}
}
}
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-136-g01db8e25a"
#define IGRAPH_VERSION "0.10.13-137-g82d35eebd"
#define IGRAPH_VERSION_MAJOR 0
#define IGRAPH_VERSION_MINOR 10
#define IGRAPH_VERSION_PATCH 13
#define IGRAPH_VERSION_PRERELEASE "136-g01db8e25a"
#define IGRAPH_VERSION_PRERELEASE "137-g82d35eebd"

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

0 comments on commit fb2fed3

Please sign in to comment.