From cb294e3f6c4340744b1d2b53883c24121387259f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20T=2E=20K=C3=BChner?= <56360279+schnellerhase@users.noreply.github.com> Date: Sun, 17 Nov 2024 13:54:36 +0100 Subject: [PATCH] Apply suggestions from code review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Jørgen Schartum Dokken --- python/dolfinx/graph.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python/dolfinx/graph.py b/python/dolfinx/graph.py index 2d59a03fd9..3800dde843 100644 --- a/python/dolfinx/graph.py +++ b/python/dolfinx/graph.py @@ -38,10 +38,10 @@ class AdjacencyList: _cpp_object: Union[_cpp.la.AdjacencyList_int32, _cpp.la.AdjacencyList_int64] def __init__(self, cpp_object: Union[_cpp.la.AdjacencyList_int32, _cpp.la.AdjacencyList_int64]): - """Creates a python wrapper for the exported adjacency list class. + """Creates a Python wrapper for the exported adjacency list class. Note: - This constructor does not create a new adjacency list, see `adjacencylist` for that. + This constructor does not create a new adjacency list, see :func:`adjacencylist` for that. Args: The underlying cpp instance that this object will wrap. @@ -70,7 +70,7 @@ def array(self) -> npt.NDArray[Union[np.int32, np.int64]]: @property def offsets(self) -> npt.NDArray[np.int32]: - """Offsets for each node in the `array()`. + """Offsets for each node in the :func:`array`. Returns: Array of indices with shape `(num_nodes+1)`.