Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Jørgen Schartum Dokken <[email protected]>
  • Loading branch information
schnellerhase and jorgensd authored Nov 17, 2024
1 parent b5f508f commit cb294e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/dolfinx/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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)`.
Expand Down

0 comments on commit cb294e3

Please sign in to comment.