Unverified Commit 81456af8 authored by Kay Liu's avatar Kay Liu Committed by GitHub
Browse files

[Doc] fix inconsistent variable names (#3065)


Co-authored-by: default avatarQuan (Andy) Gan <coin2028@hotmail.com>
parent 7f4086da
...@@ -439,7 +439,7 @@ all edge types, so that it can work on heterogeneous graphs as well. ...@@ -439,7 +439,7 @@ all edge types, so that it can work on heterogeneous graphs as well.
# Return a new graph with the same nodes as the original graph as a # Return a new graph with the same nodes as the original graph as a
# frontier # frontier
frontier = dgl.edge_subgraph(new_edge_masks, relabel_nodes=False) frontier = dgl.edge_subgraph(new_edges_masks, relabel_nodes=False)
return frontier return frontier
def __len__(self): def __len__(self):
......
...@@ -381,7 +381,7 @@ DGL确保块的输出节点将始终出现在输入节点中。如下代码所 ...@@ -381,7 +381,7 @@ DGL确保块的输出节点将始终出现在输入节点中。如下代码所
new_edges_masks[etype] = edge_mask.bool() new_edges_masks[etype] = edge_mask.bool()
# 返回一个与初始图有相同节点的图作为边界 # 返回一个与初始图有相同节点的图作为边界
frontier = dgl.edge_subgraph(new_edge_masks, relabel_nodes=False) frontier = dgl.edge_subgraph(new_edges_masks, relabel_nodes=False)
return frontier return frontier
def __len__(self): def __len__(self):
......
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