make_initialized_edge_src_dst_property.cuh#

namespace cugraph

Functions

template<typename GraphViewType, typename T>
edge_src_property_t<typename GraphViewType::vertex_type, T> make_initialized_edge_src_property(
raft::handle_t const &handle,
GraphViewType const &graph_view,
T input,
bool do_expensive_check = false
)

Create an edge source property and fill the entire buffer with the given value.

Create an edge source property object for graph_view and initialize the edge source property values to input.

Template Parameters:
  • GraphViewType – Type of the passed non-owning graph object.

  • T – Type of the edge source property values.

Parameters:
  • handle – RAFT handle object to encapsulate resources (e.g. CUDA stream, communicator, and handles to various CUDA libraries) to run graph algorithms.

  • graph_view – Non-owning graph object.

  • input – Edge source property values will be set to input.

  • do_expensive_check – A flag to run expensive checks for input arguments (if set to true).

Returns:

edge_src_property_t<typename GraphViewType::vertex_type, T> with all entries set to input.

template<typename GraphViewType, typename T>
edge_dst_property_t<typename GraphViewType::vertex_type, T> make_initialized_edge_dst_property(
raft::handle_t const &handle,
GraphViewType const &graph_view,
T input,
bool do_expensive_check = false
)

Create an edge destination property and fill the entire buffer with the given value.

Create an edge destination property object for graph_view and initialize the edge destination property values to input.

Template Parameters:
  • GraphViewType – Type of the passed non-owning graph object.

  • T – Type of the edge destination property values.

Parameters:
  • handle – RAFT handle object to encapsulate resources (e.g. CUDA stream, communicator, and handles to various CUDA libraries) to run graph algorithms.

  • graph_view – Non-owning graph object.

  • input – Edge destination property values will be set to input.

  • do_expensive_check – A flag to run expensive checks for input arguments (if set to true).

Returns:

edge_dst_property_t<typename GraphViewType::vertex_type, T> with all entries set to input.