olena-2.0-413-gf10be63 Small stylistic change in the implementation of adjacency matrices.

* milena/mln/util/adjacency_matrix.hh (internal::adjacency_matrix_impl_selector<V, Q>::are_adjacent): Here. --- milena/mln/util/adjacency_matrix.hh | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/milena/mln/util/adjacency_matrix.hh b/milena/mln/util/adjacency_matrix.hh index b5bfb4e..f9f5312 100644 --- a/milena/mln/util/adjacency_matrix.hh +++ b/milena/mln/util/adjacency_matrix.hh @@ -227,9 +227,9 @@ namespace mln mln_precondition(e1 < adj_.nrows()); mln_precondition(e2 < adj_.nrows()); - if (e1 > e2) - return opt::at(adj_, e2, e1); - return opt::at(adj_, e1, e2); + return e1 > e2 + ? opt::at(adj_, e2, e1) + : opt::at(adj_, e1, e2); } template <typename V, typename Q> -- 1.7.2.5
participants (1)
-
Roland Levillain