Skip to content

Commit 9d25030

Browse files
committed
MG WCC bug fix
1 parent b89eb18 commit 9d25030

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cpp/src/structure/create_graph_from_edgelist.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,8 +113,10 @@ create_graph_from_edgelist_impl(raft::handle_t const& handle,
113113
*vertex_partition_segment_offsets) =
114114
cugraph::renumber_edgelist<vertex_t, edge_t, multi_gpu>(
115115
handle,
116-
std::optional<std::tuple<vertex_t const*, vertex_t>>{std::make_tuple(
117-
(*local_vertex_span).data(), static_cast<vertex_t>((*local_vertex_span).size()))},
116+
local_vertex_span
117+
? std::optional<std::tuple<vertex_t const*, vertex_t>>{std::make_tuple(
118+
(*local_vertex_span).data(), static_cast<vertex_t>((*local_vertex_span).size()))}
119+
: std::nullopt,
118120
major_ptrs,
119121
minor_ptrs,
120122
edgelist_edge_counts,

0 commit comments

Comments
 (0)