Skip to content

Commit 554d38e

Browse files
committed
chore: updated C core; some tests will fail now
1 parent 7e212f9 commit 554d38e

File tree

13 files changed

+199
-208
lines changed

13 files changed

+199
-208
lines changed

doc/examples_sphinx-gallery/spanning_trees.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
g = g.permute_vertices(permutation)
3030
new_layout = g.layout("grid")
3131
for i in range(36):
32-
new_layout[permutation[i]] = layout[i]
32+
new_layout[i] = layout[permutation[i]]
3333
layout = new_layout
3434

3535
# %%

src/_igraph/bfsiter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ static PyObject* igraphmodule_BFSIter_iternext(igraphmodule_BFSIterObject* self)
167167
igraph_integer_t parent = igraph_dqueue_int_pop(&self->queue);
168168
igraph_integer_t i, n;
169169

170-
if (igraph_neighbors(self->graph, &self->neis, vid, self->mode)) {
170+
if (igraph_neighbors(self->graph, &self->neis, vid, self->mode, /* loops = */ 0, /* multiple = */ 0)) {
171171
igraphmodule_handle_igraph_error();
172172
return NULL;
173173
}

src/_igraph/dfsiter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ static PyObject* igraphmodule_DFSIter_iternext(igraphmodule_DFSIterObject* self)
192192
/* the values above are returned at at this stage. However, we must
193193
* prepare for the next iteration by putting the next unvisited
194194
* neighbor onto the stack */
195-
if (igraph_neighbors(self->graph, &self->neis, vid, self->mode)) {
195+
if (igraph_neighbors(self->graph, &self->neis, vid, self->mode, /* loops = */ 0, /* multiple = */ 0)) {
196196
igraphmodule_handle_igraph_error();
197197
return NULL;
198198
}

0 commit comments

Comments
 (0)