Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
72 commits
Select commit Hold shift + click to select a range
3d5a440
add vertex_property_t, vertex_property_view_t, and vertex_property_de…
seunghwak Oct 14, 2026
0d1dc95
update count_if_v to work with vertex_property_view_t
seunghwak Oct 14, 2026
a42bb5a
update reduce_v to work with vertex_property_view_t
seunghwak Oct 14, 2026
6d54fee
add transform_v
seunghwak Oct 14, 2026
2c81698
update update_edge_src|dst_property
seunghwak Oct 14, 2026
18a195a
add fill_v
seunghwak Oct 14, 2026
414f158
update per_v_transform_reduce_incoming|outgoing_e to take result in v…
seunghwak Oct 14, 2026
ddfecc1
update transform_reduce_v
seunghwak Oct 14, 2026
321e9f7
add copy_v
seunghwak Oct 14, 2026
3401052
update hits to work with vertex_property_t
seunghwak Oct 14, 2026
ffb1a8e
update vertex_property_t
seunghwak Oct 14, 2026
299e970
update fill_v to use cugraph::fill
seunghwak Oct 15, 2026
16b6632
update pagerank to work with vertex_property_t
seunghwak Oct 15, 2026
325996f
rename inconsistent functors in device_functors.cuh
seunghwak Oct 15, 2026
b9ad5ba
update hits API to be consistent with pagerank
seunghwak Oct 15, 2026
f42200f
update eigenvector_centrality
seunghwak Oct 15, 2026
93d16ea
hits/pagerank code improvements
seunghwak Oct 15, 2026
615be5e
update katz_centrality
seunghwak Oct 15, 2026
11d776d
fix a misnomer
seunghwak Oct 15, 2026
880e776
update sssp to take predecessors in std::optional rather than possibl…
seunghwak Oct 15, 2026
f765524
update update_v_frontier to work with vertex_property_view_t
seunghwak Oct 15, 2026
f165fe9
add scatter_v and gather_v
seunghwak Oct 15, 2026
55339a1
update make_edge_src|dst_property_view
seunghwak Oct 15, 2026
094d103
update sssp
seunghwak Oct 15, 2026
09391ee
add scatter_if_v
seunghwak Oct 16, 2026
a16ff0c
update bfs
seunghwak Oct 16, 2026
7bc519d
update betweenness_centrality
seunghwak Oct 16, 2026
dcf53a8
update triangle_count and edge_triangle_count
seunghwak Oct 16, 2026
e0e2361
delete declaration only legacy (edge_)betweennecess_centrality functions
seunghwak Oct 16, 2026
a418d45
update transform_reduce_src|dst_nbr_intersection_of_e_endpoints_by_v
seunghwak Oct 16, 2026
405a379
update louvain & leiden
seunghwak Oct 16, 2026
a919dd3
delete declaration only functions
seunghwak Oct 17, 2026
9c36e16
update ecg
seunghwak Oct 17, 2026
bd5f25c
update approx_weighted_matching
seunghwak Oct 17, 2026
1f998b9
add sequence_v
seunghwak Oct 17, 2026
7b717a1
delete old deprecated function
seunghwak Oct 17, 2026
4737797
update egonet
seunghwak Oct 17, 2026
022ed22
bug fix
seunghwak Oct 17, 2026
3e3e7b0
update core_number & k_core
seunghwak Oct 17, 2026
778e332
add extract_transform_if_v
seunghwak Oct 17, 2026
3457fd3
cosmetic issue
seunghwak Oct 17, 2026
f882af1
update topological_sort
seunghwak Oct 17, 2026
f20a0d1
update extract_bfs_paths
seunghwak Oct 17, 2026
048c071
rename sssp to shortest_paths as we now start from a frontier not a s…
seunghwak Oct 17, 2026
5ad560b
update weakly_connected_component
seunghwak Oct 17, 2026
06d2c5b
update vertex_coloring
seunghwak Oct 17, 2026
f70eb16
update per_v_transform_reduce_if_incoming|outgoing_e
seunghwak Oct 17, 2026
f79d226
additional migration to use vertex_property_t
seunghwak Oct 18, 2026
c8f2393
additional migration towards using vertex_property_t for vertex prope…
seunghwak Oct 20, 2026
2f83e73
update unrenumber_local_int_vertices and decompress_to_edgelist
seunghwak Oct 20, 2026
bb51fbf
udpate renumber_edgelist
seunghwak Oct 20, 2026
f67bab9
update renumber_ext_vertices, unrenumber_int_vertices, renumber_local…
seunghwak Oct 20, 2026
b445048
rename
seunghwak Oct 20, 2026
4844fcf
modernize atomic_ops.cuh
seunghwak Oct 20, 2026
0139476
update relabel
seunghwak Oct 21, 2026
a60638a
update induced_subgraph
seunghwak Oct 21, 2026
3b39bd1
update compute_in|out_degrees, compute_in|out_weight_sums
seunghwak Oct 21, 2026
0ab05df
update mg_per_v_pair_transform_src|dst_nbr_intersection
seunghwak Oct 21, 2026
80eec3d
add transform_if_v
seunghwak Oct 21, 2026
0e02a7a
add do_expensive_check to the functions in algorithms.hpp and graph_f…
seunghwak Oct 21, 2026
dba3ed1
fix inconsistencies in input parameters ordering (rng_state)
seunghwak Oct 21, 2026
ed758b8
update negative_sampling
seunghwak Oct 21, 2026
5c93a22
Merge branch 'main' of https://github.com/rapidsai/cugraph into fea_v…
seunghwak Oct 22, 2026
7e06c04
update styles
seunghwak Oct 22, 2026
870a75e
Merge branch 'main' of https://github.com/rapidsai/cugraph into fea_v…
seunghwak Nov 6, 2026
cea637d
delete eidecl_graph.hpp
seunghwak Nov 10, 2026
7ea5d13
add non-type template parameter bool dynamic = false as a placeholder
seunghwak Nov 10, 2026
06a5cd3
resolve merge conflicts
seunghwak Nov 19, 2026
2f25a18
remove leftover
seunghwak Nov 19, 2026
9f63d3f
Merge branch 'main' of https://github.com/rapidsai/cugraph into fea_d…
seunghwak Nov 19, 2026
50e4871
Merge branch 'main' of https://github.com/rapidsai/cugraph into fea_d…
seunghwak Nov 20, 2026
020c60e
remove unused hypersparse offsets in SG
seunghwak Nov 20, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 0 additions & 42 deletions cpp/include/cugraph/eidecl_graph.hpp

This file was deleted.

317 changes: 182 additions & 135 deletions cpp/include/cugraph/graph.hpp

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion cpp/include/cugraph/graph_functions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ struct renumber_meta_t<vertex_t, edge_t, multi_gpu, std::enable_if_t<multi_gpu>>
template <typename vertex_t, typename edge_t, bool multi_gpu>
struct renumber_meta_t<vertex_t, edge_t, multi_gpu, std::enable_if_t<!multi_gpu>> {
std::vector<vertex_t> segment_offsets{};
std::optional<std::vector<vertex_t>> hypersparse_degree_offsets{};
};

/**
Expand Down
313 changes: 177 additions & 136 deletions cpp/include/cugraph/graph_view.hpp

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions cpp/src/structure/create_graph_impl.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ create_graph_from_partitioned_edgelist(
std::move(edge_partition_offsets),
std::move(edge_partition_indices),
std::move(edge_partition_dcs_nzd_vertices),
cugraph::graph_meta_t<vertex_t, edge_t, true>{
cugraph::detail::graph_meta_t<vertex_t, edge_t, true>{
meta.number_of_vertices,
meta.number_of_edges,
graph_properties,
Expand Down Expand Up @@ -1665,11 +1665,10 @@ create_graph_impl(raft::handle_t const& handle,
handle,
std::move(offsets),
std::move(indices),
cugraph::graph_meta_t<vertex_t, edge_t, multi_gpu>{
cugraph::detail::graph_meta_t<vertex_t, edge_t, multi_gpu>{
num_vertices,
graph_properties,
renumber ? std::optional<std::vector<vertex_t>>{meta.segment_offsets} : std::nullopt,
meta.hypersparse_degree_offsets}),
renumber ? std::optional<std::vector<vertex_t>>{meta.segment_offsets} : std::nullopt}),
std::move(new_edge_properties),
renumber ? std::make_optional(vertex_property_t<vertex_t, vertex_t>(
std::move(*renumber_map_labels), num_vertices))
Expand Down
94 changes: 48 additions & 46 deletions cpp/src/structure/graph_impl.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ std::enable_if_t<multi_gpu,
std::optional<std::vector<vertex_t>>>>
update_local_sorted_unique_edge_majors_minors(
raft::handle_t const& handle,
graph_meta_t<vertex_t, edge_t, multi_gpu> const& meta,
detail::graph_meta_t<vertex_t, edge_t, multi_gpu> const& meta,
std::vector<rmm::device_uvector<edge_t>> const& edge_partition_offsets,
std::vector<rmm::device_uvector<vertex_t>> const& edge_partition_indices,
std::optional<std::vector<rmm::device_uvector<vertex_t>>> const& edge_partition_dcs_nzd_vertices)
Expand Down Expand Up @@ -379,7 +379,7 @@ template <typename vertex_t, typename edge_t, bool multi_gpu>
std::enable_if_t<multi_gpu, std::vector<rmm::device_uvector<uint32_t>>>
compute_edge_partition_dcs_nzd_range_bitmaps(
raft::handle_t const& handle,
graph_meta_t<vertex_t, edge_t, multi_gpu> const& meta,
detail::graph_meta_t<vertex_t, edge_t, multi_gpu> const& meta,
std::vector<rmm::device_uvector<vertex_t>> const& edge_partition_dcs_nzd_vertices)
{
auto& minor_comm = handle.get_subcomm(cugraph::partition_manager::minor_comm_name());
Expand Down Expand Up @@ -421,18 +421,20 @@ compute_edge_partition_dcs_nzd_range_bitmaps(

} // namespace

template <typename vertex_t, typename edge_t, bool store_transposed, bool multi_gpu>
graph_t<vertex_t, edge_t, store_transposed, multi_gpu, std::enable_if_t<multi_gpu>>::graph_t(
template <typename vertex_t, typename edge_t, bool store_transposed, bool dynamic>
graph_t<vertex_t, edge_t, store_transposed, true, dynamic>::graph_t(
raft::handle_t const& handle,
std::vector<rmm::device_uvector<edge_t>>&& edge_partition_offsets,
std::vector<rmm::device_uvector<vertex_t>>&& edge_partition_indices,
std::optional<std::vector<rmm::device_uvector<vertex_t>>>&& edge_partition_dcs_nzd_vertices,
graph_meta_t<vertex_t, edge_t, multi_gpu> meta,
bool do_expensive_check)
detail::graph_meta_t<vertex_t, edge_t, true> meta,
bool do_expensive_check) requires(!dynamic)
: detail::graph_base_t<vertex_t, edge_t>(
meta.number_of_vertices, meta.number_of_edges, meta.properties),
partition_(meta.partition)
graph_(handle)
{
graph_.partition = meta.partition;

CUGRAPH_EXPECTS(
edge_partition_offsets.size() == edge_partition_indices.size(),
"Invalid input argument: edge_partition_offsets.size() != edge_partition_indices.size().");
Expand All @@ -441,56 +443,56 @@ graph_t<vertex_t, edge_t, store_transposed, multi_gpu, std::enable_if_t<multi_gp
"Invalid input argument: edge_partition_dcs_nzd_vertices.has_value() && "
"edge_partition_indices.size() != (*edge_partition_dcs_nzd_vertices).size().");

edge_partition_segment_offsets_ = meta.edge_partition_segment_offsets;
edge_partition_hypersparse_degree_offsets_ = meta.edge_partition_hypersparse_degree_offsets;
graph_.edge_partition_segment_offsets = meta.edge_partition_segment_offsets;
graph_.edge_partition_hypersparse_degree_offsets = meta.edge_partition_hypersparse_degree_offsets;

// compress edge list (COO) to CSR (or CSC) or CSR + DCSR (CSC + DCSC) hybrid

edge_partition_offsets_ = std::move(edge_partition_offsets);
edge_partition_indices_ = std::move(edge_partition_indices);
edge_partition_dcs_nzd_vertices_ = std::move(edge_partition_dcs_nzd_vertices);
graph_.edge_partition_offsets = std::move(edge_partition_offsets);
graph_.edge_partition_indices = std::move(edge_partition_indices);
graph_.edge_partition_dcs_nzd_vertices = std::move(edge_partition_dcs_nzd_vertices);

// update local sorted unique edge sources/destinations (only if key, value pair will be used)

if constexpr (store_transposed) {
std::tie(local_sorted_unique_edge_dsts_,
local_sorted_unique_edge_dst_chunk_start_offsets_,
local_sorted_unique_edge_dst_chunk_size_,
local_sorted_unique_edge_srcs_,
local_sorted_unique_edge_src_chunk_start_offsets_,
local_sorted_unique_edge_src_chunk_size_,
local_sorted_unique_edge_src_vertex_partition_offsets_) =
update_local_sorted_unique_edge_majors_minors<vertex_t, edge_t, store_transposed, multi_gpu>(
std::tie(graph_.local_sorted_unique_edge_dsts,
graph_.local_sorted_unique_edge_dst_chunk_start_offsets,
graph_.local_sorted_unique_edge_dst_chunk_size,
graph_.local_sorted_unique_edge_srcs,
graph_.local_sorted_unique_edge_src_chunk_start_offsets,
graph_.local_sorted_unique_edge_src_chunk_size,
graph_.local_sorted_unique_edge_src_vertex_partition_offsets) =
update_local_sorted_unique_edge_majors_minors<vertex_t, edge_t, store_transposed, true>(
handle,
meta,
edge_partition_offsets_,
edge_partition_indices_,
edge_partition_dcs_nzd_vertices_);
graph_.edge_partition_offsets,
graph_.edge_partition_indices,
graph_.edge_partition_dcs_nzd_vertices);
} else {
std::tie(local_sorted_unique_edge_srcs_,
local_sorted_unique_edge_src_chunk_start_offsets_,
local_sorted_unique_edge_src_chunk_size_,
local_sorted_unique_edge_dsts_,
local_sorted_unique_edge_dst_chunk_start_offsets_,
local_sorted_unique_edge_dst_chunk_size_,
local_sorted_unique_edge_dst_vertex_partition_offsets_) =
update_local_sorted_unique_edge_majors_minors<vertex_t, edge_t, store_transposed, multi_gpu>(
std::tie(graph_.local_sorted_unique_edge_srcs,
graph_.local_sorted_unique_edge_src_chunk_start_offsets,
graph_.local_sorted_unique_edge_src_chunk_size,
graph_.local_sorted_unique_edge_dsts,
graph_.local_sorted_unique_edge_dst_chunk_start_offsets,
graph_.local_sorted_unique_edge_dst_chunk_size,
graph_.local_sorted_unique_edge_dst_vertex_partition_offsets) =
update_local_sorted_unique_edge_majors_minors<vertex_t, edge_t, store_transposed, true>(
handle,
meta,
edge_partition_offsets_,
edge_partition_indices_,
edge_partition_dcs_nzd_vertices_);
graph_.edge_partition_offsets,
graph_.edge_partition_indices,
graph_.edge_partition_dcs_nzd_vertices);
}

if (edge_partition_dcs_nzd_vertices_) {
edge_partition_dcs_nzd_range_bitmaps_ =
compute_edge_partition_dcs_nzd_range_bitmaps(handle, meta, *edge_partition_dcs_nzd_vertices_);
if (graph_.edge_partition_dcs_nzd_vertices) {
graph_.edge_partition_dcs_nzd_range_bitmaps = compute_edge_partition_dcs_nzd_range_bitmaps(
handle, meta, *graph_.edge_partition_dcs_nzd_vertices);
}

// Global logical |E|: sum local CSR index counts, then SUM allreduce (each edge on one GPU).
{
edge_t local_count{0};
for (auto const& indices : edge_partition_indices_) {
for (auto const& indices : graph_.edge_partition_indices) {
local_count += static_cast<edge_t>(indices.size());
}
#if 1 // FIXME: we should add host_allreduce to raft
Expand All @@ -504,20 +506,20 @@ graph_t<vertex_t, edge_t, store_transposed, multi_gpu, std::enable_if_t<multi_gp
}
}

template <typename vertex_t, typename edge_t, bool store_transposed, bool multi_gpu>
graph_t<vertex_t, edge_t, store_transposed, multi_gpu, std::enable_if_t<!multi_gpu>>::graph_t(
template <typename vertex_t, typename edge_t, bool store_transposed, bool dynamic>
graph_t<vertex_t, edge_t, store_transposed, false, dynamic>::graph_t(
raft::handle_t const& handle,
rmm::device_uvector<edge_t>&& offsets,
rmm::device_uvector<vertex_t>&& indices,
graph_meta_t<vertex_t, edge_t, multi_gpu> meta,
bool do_expensive_check)
detail::graph_meta_t<vertex_t, edge_t, false> meta,
bool do_expensive_check) requires(!dynamic)
: detail::graph_base_t<vertex_t, edge_t>(
meta.number_of_vertices, static_cast<edge_t>(indices.size()), meta.properties),
offsets_(std::move(offsets)),
indices_(std::move(indices)),
segment_offsets_(meta.segment_offsets),
hypersparse_degree_offsets_(meta.hypersparse_degree_offsets)
graph_(handle)
{
graph_.offsets = std::move(offsets);
graph_.indices = std::move(indices);
graph_.segment_offsets = meta.segment_offsets;
}

} // namespace cugraph
Loading
Loading