Skip to content

Commit fb2fed3

Browse files
committed
vendor: Update vendored sources to igraph/igraph@82d35ee
refactor: minor readability cleanup in matching functions
1 parent d485e2f commit fb2fed3

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/vendor/cigraph/src/misc/matching.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ igraph_error_t igraph_is_matching(const igraph_t *graph,
122122
}
123123
}
124124

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

181181
IGRAPH_VECTOR_INT_INIT_FINALLY(&neis, 0);
182182

183-
valid = 1;
183+
valid = true;
184184
for (i = 0; i < no_of_nodes; i++) {
185185
j = VECTOR(*matching)[i];
186186
if (j != -1) {
@@ -192,9 +192,9 @@ igraph_error_t igraph_is_maximal_matching(const igraph_t *graph,
192192
n = igraph_vector_int_size(&neis);
193193
for (j = 0; j < n; j++) {
194194
if (VECTOR(*matching)[VECTOR(neis)[j]] == -1) {
195-
if (types == 0 ||
195+
if (types == NULL ||
196196
VECTOR(*types)[i] != VECTOR(*types)[VECTOR(neis)[j]]) {
197-
valid = 0; break;
197+
valid = false; break;
198198
}
199199
}
200200
}

src/vendor/igraph_version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@
2828

2929
__BEGIN_DECLS
3030

31-
#define IGRAPH_VERSION "0.10.13-136-g01db8e25a"
31+
#define IGRAPH_VERSION "0.10.13-137-g82d35eebd"
3232
#define IGRAPH_VERSION_MAJOR 0
3333
#define IGRAPH_VERSION_MINOR 10
3434
#define IGRAPH_VERSION_PATCH 13
35-
#define IGRAPH_VERSION_PRERELEASE "136-g01db8e25a"
35+
#define IGRAPH_VERSION_PRERELEASE "137-g82d35eebd"
3636

3737
IGRAPH_EXPORT void igraph_version(const char **version_string,
3838
int *major,

0 commit comments

Comments
 (0)