Skip to content

Commit 0a38ea8

Browse files
authored
Update graphobject.c - reverse cutoff, normalized args
1 parent 8d2e9bc commit 0a38ea8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/_igraph/graphobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4832,7 +4832,7 @@ PyObject *igraphmodule_Graph_closeness(igraphmodule_GraphObject * self,
48324832
return NULL;
48334833
}
48344834
if (igraph_closeness_cutoff(&self->g, &res, NULL, NULL, vs, mode, weights,
4835-
PyObject_IsTrue(normalized_o), PyFloat_AsDouble(cutoff_num))) {
4835+
PyFloat_AsDouble(cutoff_num), PyObject_IsTrue(normalized_o))) {
48364836
igraph_vs_destroy(&vs);
48374837
igraph_vector_destroy(&res);
48384838
if (weights) { igraph_vector_destroy(weights); free(weights); }
@@ -4912,7 +4912,7 @@ PyObject *igraphmodule_Graph_harmonic_centrality(igraphmodule_GraphObject * self
49124912
return NULL;
49134913
}
49144914
if (igraph_harmonic_centrality_cutoff(&self->g, &res, vs, mode, weights,
4915-
PyFloat_AsDouble(cutoff_num), PyObject_IsTrue(normalized_o))) {
4915+
PyObject_IsTrue(normalized_o), PyFloat_AsDouble(cutoff_num))) {
49164916
igraph_vs_destroy(&vs);
49174917
igraph_vector_destroy(&res);
49184918
if (weights) { igraph_vector_destroy(weights); free(weights); }

0 commit comments

Comments
 (0)