Skip to content

Commit

Permalink
update docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
jnke2016 committed Nov 11, 2024
1 parent e0fd0b5 commit 946b033
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
15 changes: 4 additions & 11 deletions python/cugraph/cugraph/structure/decompress_to_edgelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,19 +23,13 @@ def decompress_to_edgelist(
do_expensive_check: bool
) -> cudf.DataFrame:
"""
Compute a subgraph of the existing graph including only the specified
vertices. This algorithm works with both directed and undirected graphs
and does not actually traverse the edges, but instead simply pulls out any
edges that are incident on vertices that are both contained in the vertices
list.
If no subgraph can be extracted from the vertices provided, a 'None' value
will be returned.
Extract a the edgelist from a graph.
Parameters
----------
G : cugraph.Graph or networkx.Graph
The current implementation only supports weighted graphs.
G : cugraph.Graph
cuGraph graph descriptor, should contain the connectivity information
as an edge list.
do_expensive_check: bool
Expand All @@ -54,7 +48,6 @@ def decompress_to_edgelist(
>>> verts[0] = 0
>>> verts[1] = 1
>>> verts[2] = 2
>>> sverts = cudf.Series(verts)
>>> edgelist = cugraph.decompress_to_edgelist(G, False)
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def decompress_to_edgelist(ResourceHandle resource_handle,
_GPUGraph graph,
bool_t do_expensive_check):
"""
extract a the edgelist from a graph
Extract a the edgelist from a graph
Parameters
----------
Expand Down

0 comments on commit 946b033

Please sign in to comment.