Skip to content

Commit

Permalink
add TUDataset notice (dmlc#3075)
Browse files Browse the repository at this point in the history
Co-authored-by: Jinjing Zhou <[email protected]>
  • Loading branch information
BarclayII and VoVAllen authored Jun 30, 2021
1 parent 4307fe8 commit 7823ae2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions python/dgl/data/tu.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,13 @@ class TUDataset(DGLBuiltinDataset):
num_labels : int
Number of classes
Notes
-----
**IMPORTANT:** Some of the datasets have duplicate edges exist in the graphs, e.g.
the edges in ``IMDB-BINARY`` are all duplicated. DGL faithfully keeps the duplicates
as per the original data. Other frameworks such as PyTorch Geometric removes the
duplicates by default. You can remove the duplicate edges with :func:`dgl.to_simple`.
Examples
--------
>>> data = TUDataset('DD')
Expand Down

0 comments on commit 7823ae2

Please sign in to comment.