diff --git a/src/sage/graphs/generic_graph_pyx.pyx b/src/sage/graphs/generic_graph_pyx.pyx index f20adecff30..720177ce6c8 100644 --- a/src/sage/graphs/generic_graph_pyx.pyx +++ b/src/sage/graphs/generic_graph_pyx.pyx @@ -1321,7 +1321,7 @@ def transitive_reduction_acyclic(G): for vv in G.neighbors_out(uu): v = v_to_int[vv] binary_matrix_set1(closure, u, v) - bitset_or(closure.rows+u, closure.rows+u, closure.rows+v) + bitset_or(closure.rows+u, closure.rows+u, closure.rows+v) # Build the transitive reduction of G # @@ -1333,7 +1333,7 @@ def transitive_reduction_acyclic(G): u = v_to_int[uu] for vv in G.neighbors_out(uu): v = v_to_int[vv] - bitset_difference(closure.rows+u, closure.rows+u, closure.rows+v) + bitset_difference(closure.rows+u, closure.rows+u, closure.rows+v) for vv in G.neighbors_out(uu): v = v_to_int[vv] if binary_matrix_get(closure, u, v):