From 9f2b683d0570390338ed0256812f69abfdfe3e8f Mon Sep 17 00:00:00 2001 From: Ray Bell Date: Tue, 9 Apr 2024 00:39:14 -0400 Subject: [PATCH 1/2] test sphinx mapping to networkx --- docs/cugraph/source/conf.py | 14 +++++++++++--- python/cugraph/cugraph/structure/convert_matrix.py | 2 ++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/docs/cugraph/source/conf.py b/docs/cugraph/source/conf.py index 952b962aca2..66bc3137fba 100644 --- a/docs/cugraph/source/conf.py +++ b/docs/cugraph/source/conf.py @@ -190,9 +190,17 @@ 'Miscellaneous'), ] -# Example configuration for intersphinx: refer to the Python standard library. -intersphinx_mapping = {'https://docs.python.org/': None} - +# Connect docs in other projects +intersphinx_mapping = { + "networkx": ( + "https://networkx.org/documentation/stable/", + "https://networkx.org/documentation/stable/objects.inv", + ), + "python": ( + "https://docs.python.org/3", + "https://docs.python.org/3/objects.inv", + ), +} # Config numpydoc numpydoc_show_inherited_class_members = False diff --git a/python/cugraph/cugraph/structure/convert_matrix.py b/python/cugraph/cugraph/structure/convert_matrix.py index ca8e93c482b..aff85b64f88 100644 --- a/python/cugraph/cugraph/structure/convert_matrix.py +++ b/python/cugraph/cugraph/structure/convert_matrix.py @@ -277,6 +277,8 @@ def from_pandas_edgelist( renumber=True, ): """ + See :func:`networkx.convert_matrix.from_pandas_edgelist`. + Initialize a graph from the edge list. It is an error to call this method on an initialized Graph object. Source argument is source column name and destination argument is destination column name. From 82c4fa6151ef21f5b70cc1df56e1e6cba1b67d47 Mon Sep 17 00:00:00 2001 From: Rick Ratzel Date: Mon, 20 May 2024 16:30:08 -0500 Subject: [PATCH 2/2] Updates copyright date. --- python/cugraph/cugraph/structure/convert_matrix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/cugraph/cugraph/structure/convert_matrix.py b/python/cugraph/cugraph/structure/convert_matrix.py index aff85b64f88..b9b9554b870 100644 --- a/python/cugraph/cugraph/structure/convert_matrix.py +++ b/python/cugraph/cugraph/structure/convert_matrix.py @@ -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