edge_bucket.cuh#
-
namespace cugraph
-
template<typename vertex_t, typename edge_t, bool src_major = false, bool multi_gpu = false, bool sorted_unique = false>
class edge_bucket_t Public Functions
-
inline edge_bucket_t(raft::handle_t const &handle, bool multigraph)#
- inline edge_bucket_t(
- raft::handle_t const &handle,
- rmm::device_uvector<vertex_t> &&srcs,
- rmm::device_uvector<vertex_t> &&dsts,
- std::optional<rmm::device_uvector<edge_t>> &&multi_edge_indices
- inline void insert( )
@ brief insert an edge to the bucket
- Parameters:
src – edge source vertex.
dst – edge destination vertex.
multi_edge_index – multi-edge index (for multi-graphs).
-
template<typename VertexIterator, typename MultiEdgeIndexIterator>
inline void insert( - VertexIterator src_first,
- VertexIterator src_last,
- VertexIterator dst_first,
- std::optional<MultiEdgeIndexIterator> multi_edge_index_first
@ brief insert a list of edges to the bucket
- Parameters:
src_first – Iterator pointing to the first (inclusive) element of the edge source vertices in device memory.
src_last – Iterator pointing to the last (exclusive) element of the edge source vertices stored in device memory.
dst_first – Iterator pointing to the first (inclusive) element of the edge destination vertices in device memory.
multi_edge_index_first – Iterator pointing to the first (inclusive) element of the multi-edge indices in device memory (for multi-graphs).
-
inline size_t size() const#
-
template<bool do_aggregate = multi_gpu>
inline std::enable_if_t<do_aggregate, size_t> aggregate_size(
-
template<bool do_aggregate = multi_gpu>
inline std::enable_if_t<!do_aggregate, size_t> aggregate_size(
-
inline void resize(size_t size)#
-
inline void clear()#
-
inline void shrink_to_fit()#
-
inline auto const src_begin() const#
-
inline auto src_begin()#
-
inline auto const src_end() const#
-
inline auto src_end()#
-
inline auto const dst_begin() const#
-
inline auto dst_begin()#
-
inline auto const dst_end() const#
-
inline auto dst_end()#
-
inline auto const multi_edge_index_begin() const#
-
inline auto multi_edge_index_begin()#
-
inline auto const multi_edge_index_end() const#
-
inline auto multi_edge_index_end()#
Public Static Attributes
-
static bool constexpr is_sorted_unique = sorted_unique#
-
inline edge_bucket_t(raft::handle_t const &handle, bool multigraph)#
-
template<typename vertex_t, typename edge_t, bool src_major = false, bool multi_gpu = false, bool sorted_unique = false>