"tests/python/vscode:/vscode.git/clone" did not exist on "7ff041528c2e204967499c558870cacc0e1fcd4c"
Unverified Commit bc733a74 authored by Rhett Ying's avatar Rhett Ying Committed by GitHub
Browse files

[doc] fix docstring typo

parent f6fa920d
...@@ -187,6 +187,7 @@ def unique_and_compact_csc_formats( ...@@ -187,6 +187,7 @@ def unique_and_compact_csc_formats(
): ):
""" """
Compact csc formats and return unique nodes (per type). Compact csc formats and return unique nodes (per type).
Parameters Parameters
---------- ----------
csc_formats : Union[CSCFormatBase, Dict(str, CSCFormatBase)] csc_formats : Union[CSCFormatBase, Dict(str, CSCFormatBase)]
...@@ -203,6 +204,7 @@ def unique_and_compact_csc_formats( ...@@ -203,6 +204,7 @@ def unique_and_compact_csc_formats(
- If `unique_dst_nodes` is a tensor: It means the graph is homogeneous. - 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 - If `csc_formats` is a dictionary: The keys are node type and the
values are corresponding nodes. And IDs inside are heterogeneous ids. values are corresponding nodes. And IDs inside are heterogeneous ids.
Returns Returns
------- -------
Tuple[csc_formats, unique_nodes] Tuple[csc_formats, unique_nodes]
...@@ -211,6 +213,7 @@ def unique_and_compact_csc_formats( ...@@ -211,6 +213,7 @@ def unique_and_compact_csc_formats(
"Compacted csc formats" indicates that the node IDs in the input node "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 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. mapped to a contiguous space of IDs ranging from 0 to N.
Examples Examples
-------- --------
>>> import dgl.graphbolt as gb >>> import dgl.graphbolt as gb
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment