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
dc86bd42
Unverified
Commit
dc86bd42
authored
Jun 17, 2020
by
Da Zheng
Committed by
GitHub
Jun 17, 2020
Browse files
[Doc] fix a doc for partition_graph. (#1657)
* fix a doc for partition_graph. * Update partition.py * fix.
parent
b9ec3e36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
python/dgl/distributed/partition.py
python/dgl/distributed/partition.py
+9
-1
No files found.
python/dgl/distributed/partition.py
View file @
dc86bd42
...
...
@@ -180,7 +180,15 @@ def partition_graph(g, graph_name, num_parts, out_path, num_hops=1, part_method=
stored in a dictionary, in which the key is the edge data name and the value is a tensor.
The graph structure of a partition is stored in a file with the DGLGraph format. The DGLGraph
contains the mapping of node/edge Ids to the Ids in the original graph.
contains the mapping of node/edge Ids to the Ids in the global graph. The mappings can be
accessed with `part.ndata[dgl.NID]` and `part.edata[dgl.NID]`, where `part` is the partition
graph structure. In addition to the mapping, the partition graph contains node data
("inner_node" and "orig_id") and edge data ("inner_edge").
* "inner_node" indicates whether a node belongs to a partition.
* "inner_edge" indicates whether an edge belongs to a partition.
* "orig_id" exists when reshuffle=True. It indicates the original node Ids in the original
graph before reshuffling.
Parameters
----------
...
...
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