Skip to content

Commit

Permalink
Update torch_geometric/datasets/heterophilous_graph_dataset.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jintang Li <cnljt@outlook.com>
  • Loading branch information
rusty1s and EdisonLeeeee authored Mar 29, 2023
1 parent 7f5d45e commit 21917db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torch_geometric/datasets/heterophilous_graph_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def process(self):
data = Data(x=x, y=y, edge_index=edge_index, train_mask=train_mask,
val_mask=val_mask, test_mask=test_mask)

data = ToUndirected()(data)
data.edge_index = to_undirected(data.edge_index)

if self.pre_transform is not None:
data = self.pre_transform(data)
Expand Down

0 comments on commit 21917db

Please sign in to comment.