Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
bc733a74
"docs/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "d03240801f2ac2b4d1f49584c1c5628b98583f6a"
Unverified
Commit
bc733a74
authored
Dec 13, 2023
by
Rhett Ying
Committed by
GitHub
Dec 13, 2023
Browse files
[doc] fix docstring typo
parent
f6fa920d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
python/dgl/graphbolt/internal/sample_utils.py
python/dgl/graphbolt/internal/sample_utils.py
+3
-0
No files found.
python/dgl/graphbolt/internal/sample_utils.py
View file @
bc733a74
...
...
@@ -187,6 +187,7 @@ def unique_and_compact_csc_formats(
):
"""
Compact csc formats and return unique nodes (per type).
Parameters
----------
csc_formats : Union[CSCFormatBase, Dict(str, CSCFormatBase)]
...
...
@@ -203,6 +204,7 @@ def unique_and_compact_csc_formats(
- If `unique_dst_nodes` is a tensor: It means the graph is homogeneous.
- If `csc_formats` is a dictionary: The keys are node type and the
values are corresponding nodes. And IDs inside are heterogeneous ids.
Returns
-------
Tuple[csc_formats, unique_nodes]
...
...
@@ -211,6 +213,7 @@ def unique_and_compact_csc_formats(
"Compacted csc formats" indicates that the node IDs in the input node
pairs are replaced with mapped node IDs, where each type of node is
mapped to a contiguous space of IDs ranging from 0 to N.
Examples
--------
>>> import dgl.graphbolt as gb
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment