make_initialized_edge_property.cuh#

namespace cugraph

Functions

template<typename GraphViewType, typename T>
edge_property_t<typename GraphViewType::edge_type, T> make_initialized_edge_property(
raft::handle_t const &handle,
GraphViewType const &graph_view,
T input,
bool do_expensive_check = false
)

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

Create an edge property object for graph_view and initialize the edge property values to input. Note that the entire edge buffer is initialized to the provided input (ignoring the edge mask if graph_view has an attached edge mask); this contrasts with the fill_edge_property function which only fills the edge values for un-masked edges if graph_view has an attached edge mask.

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

  • T – Type of the edge 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 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_property_t<typename GraphViewType::edge_type, T> with all entries set to input.