Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove legacy renumbering #2949

Merged
Merged
Show file tree
Hide file tree
Changes from 163 commits
Commits
Show all changes
173 commits
Select commit Hold shift + click to select a range
54b62c9
add fixme to remove legacy renumbering
jnke2016 Nov 17, 2022
570fc76
Merge remote-tracking branch 'upstream/branch-22.12' into branch-22.1…
jnke2016 Nov 20, 2022
37374c7
Merge remote-tracking branch 'upstream/branch-23.02' into branch-22.1…
jnke2016 Jan 6, 2023
9a34d55
remove the renumebring restriction on the MNMG graph creation
jnke2016 Jan 12, 2023
a961140
properly stop the dask client
jnke2016 Jan 12, 2023
c6a1175
add deprecation warning when using the argument 'legacy_renum_only' a…
jnke2016 Jan 12, 2023
8c4ff2e
remove extra variable
jnke2016 Jan 12, 2023
48e6ee2
Merge remote-tracking branch 'upstream/branch-23.02' into branch-22.1…
jnke2016 Jan 12, 2023
4c2a844
remove outdated comments
jnke2016 Jan 12, 2023
043963d
remove unused variable
jnke2016 Jan 12, 2023
5ff3279
add option to skip renumbering
jnke2016 Jan 12, 2023
91f77c2
remove outdate else statement
jnke2016 Jan 12, 2023
4a57bdf
remove 'legacy_renum_only' argument
jnke2016 Jan 12, 2023
63bde7e
remove unused variable and fix style
jnke2016 Jan 12, 2023
3e43178
fix copyrights
jnke2016 Jan 12, 2023
6a14c81
Merge remote-tracking branch 'upstream/branch-23.02' into branch-22.1…
jnke2016 Jan 12, 2023
836d43b
fix copyrights
jnke2016 Jan 12, 2023
bbac741
remove the argument 'legacy_renum_only'
jnke2016 Jan 12, 2023
917ef69
Merge remote-tracking branch 'upstream/branch-23.02' into branch-22.1…
jnke2016 Jan 12, 2023
a80da3b
update docstrings
jnke2016 Jan 12, 2023
91c1433
fix copyrights
jnke2016 Jan 12, 2023
e049561
fix style
jnke2016 Jan 12, 2023
798a8ab
fix copyrights
jnke2016 Jan 12, 2023
6c89b63
fix copyrights
jnke2016 Jan 13, 2023
a67b46b
remove outdated tests still using cython.cu renumbering
jnke2016 Jan 13, 2023
cbfb69c
fix bug when counting the number of vertices
jnke2016 Jan 14, 2023
e970258
add description to function call
jnke2016 Jan 14, 2023
97d6317
fix docstrings
jnke2016 Jan 14, 2023
3649fff
update docstrings
jnke2016 Jan 14, 2023
2ed30df
ensure the 'start_vertices' are of the same dtype as the edgelist
jnke2016 Jan 15, 2023
97a36a1
ensure 'nstart' and the 'personalization' are of the same type as the…
jnke2016 Jan 17, 2023
d239cd0
check type even if the vertex wasn't renumbered
jnke2016 Jan 17, 2023
768d262
ensure vertex IDs are contiguous
jnke2016 Jan 26, 2023
db6df57
update conversion from edgelist to adjacency matrix as a numpy array
jnke2016 Jan 26, 2023
e11c776
fix force_atlas2
jnke2016 Jan 26, 2023
778bd64
remove isolated vertex results when computing degrees
jnke2016 Jan 27, 2023
94e67da
refactor test
jnke2016 Jan 27, 2023
eaf7be0
fix renumbering issue
jnke2016 Jan 31, 2023
730229b
update leiden tests
jnke2016 Jan 31, 2023
d649a82
renumber the edgelist and update tests
jnke2016 Jan 31, 2023
5d02d7b
update copyrights
jnke2016 Jan 31, 2023
65a6dde
update copyright
jnke2016 Jan 31, 2023
184eaad
ensure correct type
jnke2016 Jan 31, 2023
d8453f2
fix typo
jnke2016 Jan 31, 2023
9215840
fix assumption that the vertices are always renumbered
jnke2016 Feb 1, 2023
d40d362
fix typo
jnke2016 Feb 1, 2023
3efc375
ensure correct start_list type
jnke2016 Feb 1, 2023
c2dbb65
ensure correct start_list type
jnke2016 Feb 1, 2023
e802840
get latest conftest changes
jnke2016 Feb 1, 2023
307aca9
fetch latest changes
jnke2016 Mar 14, 2023
5cd259a
fix style
jnke2016 Mar 14, 2023
f920c62
fix merge conflicts
jnke2016 Mar 14, 2023
716ab6d
fix typo
jnke2016 Mar 14, 2023
8bff416
temporarily enfore renumbering until the algo leverages the CAPI graph
jnke2016 Mar 14, 2023
d591c6c
drop the 'id' column if it exists
jnke2016 Mar 15, 2023
5e0f6dd
temporarily enforce renumbering and drop it once these algos leverage…
jnke2016 Mar 16, 2023
ff49d71
skip obsolete test and add fixme
jnke2016 Mar 16, 2023
874cc37
first cut at C API for some legacy algorithms
ChuckHastings Mar 16, 2023
cb6ca70
unrenumber only if the datasets was renumbered in the first place
jnke2016 Mar 16, 2023
c5613d6
remove obsolete tests still leveraging the cython.cu renumbering
jnke2016 Mar 16, 2023
b2244e3
add comments
jnke2016 Mar 16, 2023
5aafa01
add test for personalization vertex dtype
jnke2016 Mar 17, 2023
17df8d2
add data type check for dataframe argument with vertex column
jnke2016 Mar 17, 2023
ae7b540
fix bug in test
jnke2016 Mar 17, 2023
9e51551
fix style
jnke2016 Mar 17, 2023
3211bda
fix logic
jnke2016 Mar 17, 2023
0a56f12
Merge remote-tracking branch 'upstream/branch-23.04' into branch-22.1…
jnke2016 Mar 17, 2023
064979c
implement plc induced_subgraph
jnke2016 Mar 17, 2023
97b5508
replace legacy induced_subgraph by the new implementation leveraging …
jnke2016 Mar 17, 2023
6a01c27
temporarily hardcode the 'offsets'
jnke2016 Mar 17, 2023
e791eda
remove legacy subgraph_extraction
jnke2016 Mar 17, 2023
6b13b4d
fix copyright
jnke2016 Mar 17, 2023
f13f880
fix style
jnke2016 Mar 17, 2023
754e7d1
everything compiles, still need to add tests
ChuckHastings Mar 17, 2023
495738c
add property in 'NumberMap' to capture renumbering
jnke2016 Mar 19, 2023
aa53927
add method to check renumbering and fix bug
jnke2016 Mar 19, 2023
d643733
Merge remote-tracking branch 'upstream/branch-23.04' into branch-22.1…
jnke2016 Mar 19, 2023
7abe617
Merge remote-tracking branch 'upstream/add_c_api_for_several_legacy_a…
jnke2016 Mar 19, 2023
cf8362d
Merge branch 'branch-23.04' into add_c_api_for_several_legacy_algorithms
ChuckHastings Mar 21, 2023
cba8b77
finish implementation/testing of C API for these legacy algorithms
ChuckHastings Mar 24, 2023
50d28e5
Merge branch 'branch-23.04' into add_c_api_for_several_legacy_algorithms
ChuckHastings Mar 24, 2023
0a594f3
missed spelling change in python code
ChuckHastings Mar 24, 2023
9d6c3b7
Merge branch 'branch-23.04' into add_c_api_for_several_legacy_algorithms
ChuckHastings Mar 24, 2023
d1303ff
enable 'ecg' to follow the plc path
jnke2016 Mar 24, 2023
5d5a9c3
define ecg in the plc API
jnke2016 Mar 24, 2023
9b58f3d
fix typo
jnke2016 Mar 24, 2023
f8c86c5
add plc implementation of 'ecg'
jnke2016 Mar 24, 2023
442c1e7
merge PR adding CAPI for several legacy algorithms
jnke2016 Mar 24, 2023
b984874
fix typo
jnke2016 Mar 25, 2023
15a200d
temporarily skip test and add fixme
jnke2016 Mar 25, 2023
b02e85f
add method creating an opaque pointer to clustering from device array…
jnke2016 Mar 25, 2023
805df67
temporarily skip test and add fixme
jnke2016 Mar 25, 2023
6d6388e
add plc API for several clustering algos
jnke2016 Mar 25, 2023
9c1640a
define and implement plc API for several clustering algos
jnke2016 Mar 25, 2023
09b563c
enable legacy clustering algos to leverage the PLC implementation
jnke2016 Mar 25, 2023
3d58cca
remove redudant method call/creation
jnke2016 Mar 25, 2023
ce25dbc
update docstrings
jnke2016 Mar 27, 2023
4bb25c9
modify analyze methods for spectral to take vertices and clusters ins…
ChuckHastings Mar 28, 2023
da5bdd5
add sort_by_key function to helper file
ChuckHastings Mar 28, 2023
5126393
Merge branch 'branch-23.04' into add_c_api_for_several_legacy_algorithms
ChuckHastings Mar 28, 2023
849dfd1
merge latest change from PR adding CAPI for legacy algorithms
jnke2016 Mar 28, 2023
1f66a98
update the PLC API with respect to the CAPI
jnke2016 Mar 28, 2023
b2d07ff
set vertex default type to int32
Mar 28, 2023
cc05036
reset changes to the test
Mar 28, 2023
e91982c
need to renumber before sort
ChuckHastings Mar 28, 2023
7b993f8
set vertex default type to int32
Mar 28, 2023
c643963
update tests
Mar 28, 2023
9f71ff9
raise warning if incorrect vertex and clustering dtype are passed
Mar 28, 2023
030f423
Merge remote-tracking branch 'upstream/branch-22.12_remove-legacy-ren…
Mar 28, 2023
c9b7406
update branch with the latest cugraph change
Mar 30, 2023
00b5171
add back renumbering before sorting
Mar 31, 2023
0e633f6
re-enable skipped tests and remove dead code
Mar 31, 2023
0b3fbf4
remove legacy community algorithms and leverage the plc api
Mar 31, 2023
268662c
add PLC API for several community algorithms
Mar 31, 2023
5d20167
add method to endure correct data type
Mar 31, 2023
3da0839
fix style
Mar 31, 2023
d1f80e0
fix style
Mar 31, 2023
6ff9932
merge latest changes
Mar 31, 2023
bf8aa3c
fix merge conflicts
Mar 31, 2023
fe406cd
fix merge conflicts
Mar 31, 2023
12815f8
add back method to check if two device spans are equal
Mar 31, 2023
d1b7c16
properly handle dtype
Apr 1, 2023
3df2598
fix style
Apr 1, 2023
0fb1277
update tests
Apr 2, 2023
7edca00
add new api 'induced_subgraph' and deprecate legacy 'subgraph_extract…
Apr 3, 2023
bd82c5a
remove cython.cu renumbering path
Apr 3, 2023
d3af872
update docstrings
Apr 3, 2023
1a8b598
update docstrings
Apr 3, 2023
f0c4d7a
remove irrelevant files
Apr 3, 2023
7cbf84f
remove unnecessary renumbering
Apr 3, 2023
67cfff0
add type annotation
Apr 3, 2023
3e3391a
remove irrelevant file
Apr 3, 2023
df704bb
fix style
Apr 3, 2023
15b8df5
fix typo
Apr 3, 2023
7a7b716
revert change to the 'weight' column name
Apr 3, 2023
5c23756
revert change to the 'weight' column name
Apr 3, 2023
e7e5b48
Merge remote-tracking branch 'upstream/branch-23.04' into branch-22.1…
Apr 3, 2023
ac02ce2
fix style
Apr 3, 2023
802527a
store original input dataframe
Apr 3, 2023
141fc86
update tests
Apr 3, 2023
65e8fcd
update docstrings
Apr 3, 2023
af579f9
fix typo
Apr 3, 2023
90f90fe
properly handle mapping from internal to external vertex IDs
Apr 3, 2023
31122a6
add renumbering test when creating a graph with multiple edge attributes
Apr 3, 2023
7369ae4
fix style
Apr 3, 2023
3ef617c
Merge remote-tracking branch 'upstream/branch-23.04' into branch-22.1…
Apr 3, 2023
794a901
Merge branch 'branch-23.04' into branch-22.12_remove-legacy-renum
alexbarghi-nv Apr 3, 2023
ea1be6d
Merge remote-tracking branch 'upstream/branch-23.04' into branch-22.1…
Apr 3, 2023
34dfe07
Merge branch 'branch-22.12_remove-legacy-renum' of https://github.com…
Apr 3, 2023
431687a
Merge remote-tracking branch 'upstream/branch-23.04' into branch-22.1…
Apr 3, 2023
5c0029e
Merge remote-tracking branch 'upstream/branch-23.04' into branch-22.1…
Apr 3, 2023
5c2c33a
fetch latest change
Apr 3, 2023
3bfc521
update docstrings
Apr 3, 2023
7cfc7c5
remove the argument 'legacy_renum_only' and update docstrings
Apr 4, 2023
c2c5011
remove the argument 'legacy_renum_only' and update docstrings
Apr 4, 2023
58715cb
remove the argument 'legacy_renum_only' and update docstrings
Apr 4, 2023
df61fa4
update deprecation warning
Apr 4, 2023
8f3a05f
fix style
Apr 4, 2023
4b2760f
remove shuffle from 'api_docs'
Apr 4, 2023
3ae41c4
update docstrings
Apr 4, 2023
ae356da
update tests
Apr 4, 2023
f41fbe0
fix style
Apr 4, 2023
729991b
Merge remote-tracking branch 'upstream/branch-23.04' into branch-22.1…
Apr 4, 2023
bcf1311
update tests
Apr 4, 2023
7ef7b6c
raise an error if 'renumbering' is set to 'False' for non integers an…
Apr 4, 2023
fb2ff8a
fix style
Apr 4, 2023
96bbbf2
remove unnecessary tests
Apr 4, 2023
eb6c3fb
remove debug print
Apr 4, 2023
87005e0
fix typo
Apr 4, 2023
ffff0c9
Merge remote-tracking branch 'upstream/branch-23.04' into branch-22.1…
Apr 4, 2023
93c1431
Added cugraph import smoketest to docs build script to hopefully repo…
rlratzel Apr 4, 2023
d274f30
Makes networkx an optional import and uses a string literal for the n…
rlratzel Apr 5, 2023
b9068de
Makes networkx an optional import and uses a string literal for the t…
rlratzel Apr 5, 2023
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
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def create_graph(graph_data):
# FIXME: edgelist_df should have column names that match the defaults
# for G.from_cudf_edgelist()
G.from_cudf_edgelist(
edgelist_df, source="src", destination="dst", edge_attr="wgt", legacy_renum_only=True
edgelist_df, source="src", destination="dst", edge_attr="wgt"
)
num_verts = G.number_of_vertices()

Expand Down Expand Up @@ -94,7 +94,6 @@ def create_graph(graph_data):
source="src",
destination="dst",
edge_attr="weight",
legacy_renum_only=True,
)

else:
Expand Down Expand Up @@ -135,7 +134,7 @@ def create_mg_graph(graph_data):
# for G.from_cudf_edgelist()
edgelist_df = dask_cudf.from_cudf(edgelist_df)
G.from_dask_cudf_edgelist(
edgelist_df, source="src", destination="dst", edge_attr="wgt", legacy_renum_only=True
edgelist_df, source="src", destination="dst", edge_attr="wgt"
)
num_verts = G.number_of_vertices()

Expand Down Expand Up @@ -164,7 +163,6 @@ def create_mg_graph(graph_data):
source="src",
destination="dst",
edge_attr="weight",
legacy_renum_only=True,
)

else:
Expand Down
7 changes: 3 additions & 4 deletions benchmarks/cugraph/standalone/benchmark.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2021-2022, NVIDIA CORPORATION.
# Copyright (c) 2021-2023, NVIDIA CORPORATION.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
Expand Down Expand Up @@ -133,7 +133,6 @@ def run(self):
# Algos with transposed=True : PageRank, Katz.
# Algos with transposed=False: BFS, SSSP, Louvain, HITS,
# Neighborhood_sampling.
# Algos supporting the legacy_renum_only: HITS, Neighborhood_sampling
#
for i in range(len(self.algos)):
# set transpose=True when renumbering
Expand All @@ -151,7 +150,7 @@ def run(self):
self.algos[i][1]["alpha"] = katz_alpha
if hasattr(G, "compute_renumber_edge_list"):
G.compute_renumber_edge_list(
transposed=True, legacy_renum_only=True)
transposed=True)
else:
# FIXME: Pagerank still follows the old path. Update this once it
# follows the pylibcugraph/C path
Expand All @@ -166,7 +165,7 @@ def run(self):
G.compute_renumber_edge_list(transposed=False)
else:
G.compute_renumber_edge_list(
transposed=False, legacy_renum_only=True)
transposed=False)
self.__log("done.")
# FIXME: need to handle individual algo args
for ((algo, params), validator) in zip(self.algos, self.validators):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ def create_mg_graph(graph_data):
source="src",
destination="dst",
edge_attr="weight",
legacy_renum_only=True,
)
return G

Expand Down
16 changes: 16 additions & 0 deletions cpp/include/cugraph/detail/utility_wrappers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,5 +158,21 @@ std::tuple<rmm::device_uvector<vertex_t>, rmm::device_uvector<edge_t>> filter_de
template <typename data_t>
bool is_sorted(raft::handle_t const& handle, raft::device_span<data_t> span);

/**
* @brief Check if two device spans are equal. Returns true if every element in the spans are
* equal.
*
* @tparam data_t type of data in span
* @param handle RAFT handle object to encapsulate resources (e.g. CUDA stream, communicator, and
* handles to various CUDA libraries) to run graph algorithms.
* @param span1 The span of data to compare
* @param span2 The span of data to compare
* @return true if equal, false if not equal
*/
template <typename data_t>
bool is_equal(raft::handle_t const& handle,
raft::device_span<data_t> span1,
raft::device_span<data_t> span2);

} // namespace detail
} // namespace cugraph
51 changes: 42 additions & 9 deletions cpp/src/c_api/legacy_spectral.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,11 @@ struct analyze_clustering_ratio_cut_functor : public cugraph::c_api::abstract_fu

weight_t score;

if (cugraph::detail::is_sorted(handle_,
raft::device_span<vertex_t const>{
vertices_->as_type<vertex_t const>(), vertices_->size_})) {
if (cugraph::detail::is_equal(
handle_,
raft::device_span<vertex_t const>{vertices_->as_type<vertex_t const>(),
vertices_->size_},
raft::device_span<vertex_t const>{number_map->data(), number_map->size()})) {
cugraph::ext_raft::analyzeClustering_ratio_cut(
legacy_graph_view, n_clusters_, clusters_->as_type<vertex_t>(), &score);
} else {
Expand All @@ -321,6 +323,15 @@ struct analyze_clustering_ratio_cut_functor : public cugraph::c_api::abstract_fu
raft::copy(
tmp_c.data(), clusters_->as_type<vertex_t>(), clusters_->size_, handle_.get_stream());

cugraph::renumber_ext_vertices<vertex_t, false>(
handle_,
tmp_v.data(),
tmp_v.size(),
number_map->data(),
graph_view.local_vertex_partition_range_first(),
graph_view.local_vertex_partition_range_last(),
false);

cugraph::c_api::detail::sort_by_key(
handle_,
raft::device_span<vertex_t>{tmp_v.data(), tmp_v.size()},
Expand Down Expand Up @@ -403,9 +414,11 @@ struct analyze_clustering_edge_cut_functor : public cugraph::c_api::abstract_fun

weight_t score;

if (cugraph::detail::is_sorted(handle_,
raft::device_span<vertex_t const>{
vertices_->as_type<vertex_t const>(), vertices_->size_})) {
if (cugraph::detail::is_equal(
handle_,
raft::device_span<vertex_t const>{vertices_->as_type<vertex_t const>(),
vertices_->size_},
raft::device_span<vertex_t const>{number_map->data(), number_map->size()})) {
cugraph::ext_raft::analyzeClustering_edge_cut(
legacy_graph_view, n_clusters_, clusters_->as_type<vertex_t>(), &score);
} else {
Expand All @@ -417,6 +430,15 @@ struct analyze_clustering_edge_cut_functor : public cugraph::c_api::abstract_fun
raft::copy(
tmp_c.data(), clusters_->as_type<vertex_t>(), clusters_->size_, handle_.get_stream());

cugraph::renumber_ext_vertices<vertex_t, false>(
handle_,
tmp_v.data(),
tmp_v.size(),
number_map->data(),
graph_view.local_vertex_partition_range_first(),
graph_view.local_vertex_partition_range_last(),
false);

cugraph::c_api::detail::sort_by_key(
handle_,
raft::device_span<vertex_t>{tmp_v.data(), tmp_v.size()},
Expand Down Expand Up @@ -499,9 +521,11 @@ struct analyze_clustering_modularity_functor : public cugraph::c_api::abstract_f

weight_t score;

if (cugraph::detail::is_sorted(handle_,
raft::device_span<vertex_t const>{
vertices_->as_type<vertex_t const>(), vertices_->size_})) {
if (cugraph::detail::is_equal(
handle_,
raft::device_span<vertex_t const>{vertices_->as_type<vertex_t const>(),
vertices_->size_},
raft::device_span<vertex_t const>{number_map->data(), number_map->size()})) {
cugraph::ext_raft::analyzeClustering_modularity(
legacy_graph_view, n_clusters_, clusters_->as_type<vertex_t>(), &score);
} else {
Expand All @@ -513,6 +537,15 @@ struct analyze_clustering_modularity_functor : public cugraph::c_api::abstract_f
raft::copy(
tmp_c.data(), clusters_->as_type<vertex_t>(), clusters_->size_, handle_.get_stream());

cugraph::renumber_ext_vertices<vertex_t, false>(
handle_,
tmp_v.data(),
tmp_v.size(),
number_map->data(),
graph_view.local_vertex_partition_range_first(),
graph_view.local_vertex_partition_range_last(),
false);

cugraph::c_api::detail::sort_by_key(
handle_,
raft::device_span<vertex_t>{tmp_v.data(), tmp_v.size()},
Expand Down
21 changes: 21 additions & 0 deletions cpp/src/detail/utility_wrappers.cu
Original file line number Diff line number Diff line change
Expand Up @@ -206,5 +206,26 @@ template bool is_sorted(raft::handle_t const& handle, raft::device_span<int32_t
template bool is_sorted(raft::handle_t const& handle, raft::device_span<int64_t> span);
template bool is_sorted(raft::handle_t const& handle, raft::device_span<int64_t const> span);

template <typename data_t>
bool is_equal(raft::handle_t const& handle,
raft::device_span<data_t> span1,
raft::device_span<data_t> span2)
{
return thrust::equal(handle.get_thrust_policy(), span1.begin(), span1.end(), span2.begin());
}

template bool is_equal(raft::handle_t const& handle,
raft::device_span<int32_t> span1,
raft::device_span<int32_t> span2);
template bool is_equal(raft::handle_t const& handle,
raft::device_span<int32_t const> span1,
raft::device_span<int32_t const> span2);
template bool is_equal(raft::handle_t const& handle,
raft::device_span<int64_t> span1,
raft::device_span<int64_t> span2);
template bool is_equal(raft::handle_t const& handle,
raft::device_span<int64_t const> span1,
raft::device_span<int64_t const> span2);

} // namespace detail
} // namespace cugraph
1 change: 0 additions & 1 deletion docs/cugraph/source/api_docs/structure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,3 @@ Other
:toctree: api/

cugraph.hypergraph
cugraph.structure.shuffle
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def create_cugraph_graph_from_edges_dict(
source="_SRC_",
destination="_DST_",
edge_attr=["wgt", "_EDGE_ID_", "etp"],
legacy_renum_only=True,
renumber=True,
)
else:
Expand All @@ -53,7 +52,6 @@ def create_cugraph_graph_from_edges_dict(
source="_SRC_",
destination="_DST_",
edge_attr=["wgt", "_EDGE_ID_", "etp"],
legacy_renum_only=True,
renumber=True,
)
return G
Expand Down
7 changes: 2 additions & 5 deletions python/cugraph-pyg/cugraph_pyg/data/cugraph_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,15 +409,13 @@ def __construct_graph(
source="src",
destination="dst",
edge_attr=["w", "eid", "etp"],
legacy_renum_only=True,
)
else:
graph.from_cudf_edgelist(
df,
source="src",
destination="dst",
edge_attr=["w", "eid", "etp"],
legacy_renum_only=True,
)

return graph
Expand Down Expand Up @@ -500,9 +498,8 @@ def _get_edge_index(self, attr: CuGraphEdgeAttr) -> Tuple[TensorType, TensorType
if attr.layout != EdgeLayout.COO:
raise TypeError("Only COO direct access is supported!")

# Currently, graph creation enforces that legacy_renum_only=True
# is always called, and the input vertex ids are always of integer
# type. Therefore, it is currently safe to assume that for MG
# Currently, graph creation enforces that input vertex ids are always of
# integer type. Therefore, it is currently safe to assume that for MG
# graphs, the src/dst col names are renumbered_src/dst
# and for SG graphs, the src/dst col names are src/dst.
# This may change in the future if/when renumbering or the graph
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,13 @@ def create_graph_from_rmat_generator(
source="src",
destination="dst",
edge_attr="weight",
legacy_renum_only=True,
)
else:
G.from_cudf_edgelist(
edgelist_df,
source="src",
destination="dst",
edge_attr="weight",
legacy_renum_only=True,
)

return G
Expand Down
1 change: 1 addition & 0 deletions python/cugraph/cugraph/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

from cugraph.community import (
ecg,
induced_subgraph,
ktruss_subgraph,
k_truss,
louvain,
Expand Down
5 changes: 1 addition & 4 deletions python/cugraph/cugraph/community/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# =============================================================================
# Copyright (c) 2022, NVIDIA CORPORATION.
# Copyright (c) 2022-2023, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
# in compliance with the License. You may obtain a copy of the License at
Expand All @@ -13,11 +13,8 @@
# =============================================================================

set(cython_sources
ecg_wrapper.pyx
ktruss_subgraph_wrapper.pyx
leiden_wrapper.pyx
spectral_clustering_wrapper.pyx
subgraph_extraction_wrapper.pyx
)

set(linked_libraries cugraph::cugraph)
Expand Down
3 changes: 2 additions & 1 deletion python/cugraph/cugraph/community/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2019-2022, NVIDIA CORPORATION.
# Copyright (c) 2019-2023, NVIDIA CORPORATION.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
Expand All @@ -22,6 +22,7 @@
analyzeClustering_ratio_cut,
)
from cugraph.community.subgraph_extraction import subgraph
from cugraph.community.induced_subgraph import induced_subgraph
from cugraph.community.triangle_count import triangle_count
from cugraph.community.ktruss_subgraph import ktruss_subgraph
from cugraph.community.ktruss_subgraph import k_truss
Expand Down
29 changes: 0 additions & 29 deletions python/cugraph/cugraph/community/ecg.pxd

This file was deleted.

Loading