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

Skip/adjust doctests for deprecations #4380

Merged
merged 3 commits into from
May 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 1 addition & 3 deletions python/cugraph/cugraph/community/egonet.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,7 @@ def batched_ego_graphs(G, seeds, radius=1, center=True, undirected=None, distanc
--------
>>> from cugraph.datasets import karate
>>> G = karate.get_graph(download=True)
>>> b_ego_graph, offsets = cugraph.batched_ego_graphs(G, seeds=[1,5],
... radius=2)

>>> cugraph.batched_ego_graphs(G, seeds=[1,5], radius=2) # doctest: +SKIP
"""
warning_msg = "This function is deprecated. Batched support for multiple vertices \
will be added to `ego_graph`"
Expand Down
5 changes: 2 additions & 3 deletions python/cugraph/cugraph/community/ktruss_subgraph.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2019-2023, NVIDIA CORPORATION.
# Copyright (c) 2019-2024, 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 @@ -174,8 +174,7 @@ def ktruss_subgraph(
--------
>>> from cugraph.datasets import karate
>>> G = karate.get_graph(download=True)
>>> k_subgraph = cugraph.ktruss_subgraph(G, 3)

>>> k_subgraph = cugraph.ktruss_subgraph(G, 3, use_weights=False)
"""

_ensure_compatible_cuda_version()
Expand Down
5 changes: 2 additions & 3 deletions python/cugraph/cugraph/community/subgraph_extraction.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2019-2023, NVIDIA CORPORATION.
# Copyright (c) 2019-2024, 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 @@ -64,8 +64,7 @@ def subgraph(
>>> verts[1] = 1
>>> verts[2] = 2
>>> sverts = cudf.Series(verts)
>>> Sg = cugraph.subgraph(G, sverts)

>>> Sg = cugraph.subgraph(G, sverts) # doctest: +SKIP
"""

warning_msg = (
Expand Down
6 changes: 2 additions & 4 deletions python/cugraph/cugraph/structure/symmetrize.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,7 @@ def symmetrize_df(
>>> # Download dataset from https://github.com/rapidsai/cugraph/datasets/..
>>> M = cudf.read_csv(datasets_path / 'karate.csv', delimiter=' ',
... dtype=['int32', 'int32', 'float32'], header=None)
>>> sym_df = symmetrize_df(M, '0', '1')

>>> sym_df = symmetrize_df(M, '0', '1', multi=True)
"""
if not isinstance(src_name, list):
src_name = [src_name]
Expand Down Expand Up @@ -256,8 +255,7 @@ def symmetrize(
>>> df['sources'] = cudf.Series(M['0'])
>>> df['destinations'] = cudf.Series(M['1'])
>>> df['values'] = cudf.Series(M['2'])
>>> src, dst, val = symmetrize(df, 'sources', 'destinations', 'values')

>>> src, dst, val = symmetrize(df, 'sources', 'destinations', 'values', multi=True)
"""

# FIXME: Redundant check that should be done at the graph creation
Expand Down
Loading