diff --git a/cpp/src/community/edge_triangle_count_impl.cuh b/cpp/src/community/edge_triangle_count_impl.cuh index c3c6a85d5af..acfc2229a50 100644 --- a/cpp/src/community/edge_triangle_count_impl.cuh +++ b/cpp/src/community/edge_triangle_count_impl.cuh @@ -18,8 +18,8 @@ #include "detail/graph_partition_utils.cuh" #include "prims/edge_bucket.cuh" -#include "prims/transform_e.cuh" #include "prims/per_v_pair_dst_nbr_intersection.cuh" +#include "prims/transform_e.cuh" #include #include diff --git a/cpp/src/prims/per_v_pair_dst_nbr_intersection.cuh b/cpp/src/prims/per_v_pair_dst_nbr_intersection.cuh index 646db6c6788..a683fae6dcc 100644 --- a/cpp/src/prims/per_v_pair_dst_nbr_intersection.cuh +++ b/cpp/src/prims/per_v_pair_dst_nbr_intersection.cuh @@ -55,11 +55,10 @@ namespace cugraph { namespace detail { - } // namespace detail /** - * @brief Iterate over each input vertex pair and return the common destination neighbor list + * @brief Iterate over each input vertex pair and returns the common destination neighbor list * pair in a CSR-like format * * Iterate over every vertex pair; intersect destination neighbor lists of the two vertices in the @@ -75,12 +74,12 @@ namespace detail { * @param A flag to run expensive checks for input arguments (if set to `true`). */ template -std::tuple, rmm::device_uvector> per_v_pair_dst_nbr_intersection( - raft::handle_t const& handle, - GraphViewType const& graph_view, - VertexPairIterator vertex_pair_first, - VertexPairIterator vertex_pair_last, - bool do_expensive_check = false) +std::tuple, rmm::device_uvector> +per_v_pair_dst_nbr_intersection(raft::handle_t const& handle, + GraphViewType const& graph_view, + VertexPairIterator vertex_pair_first, + VertexPairIterator vertex_pair_last, + bool do_expensive_check = false) { static_assert(!GraphViewType::is_storage_transposed); @@ -92,15 +91,15 @@ std::tuple, rmm::device_uvector{true, true}, - false /*FIXME: pass 'do_expensive_check' as argument*/); + detail::nbr_intersection(handle, + graph_view, + cugraph::edge_dummy_property_t{}.view(), + vertex_pair_first, + vertex_pair_last, + std::array{true, true}, + false /*FIXME: pass 'do_expensive_check' as argument*/); - return std::make_tuple(std::move(intersection_offsets), std::move(intersection_indices)); + return std::make_tuple(std::move(intersection_offsets), std::move(intersection_indices)); } } // namespace cugraph