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
f1e7060b
"docs/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "2e209c30cf6f2ba42001d0629dc6b7ce354b9a9d"
Unverified
Commit
f1e7060b
authored
Sep 22, 2023
by
Rhett Ying
Committed by
GitHub
Sep 22, 2023
Browse files
[GraphBolt] add ogb-lsc-mag240m into BuiltinDataset (#6368)
parent
ed3840fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
python/dgl/graphbolt/impl/ondisk_dataset.py
python/dgl/graphbolt/impl/ondisk_dataset.py
+14
-1
No files found.
python/dgl/graphbolt/impl/ondisk_dataset.py
View file @
f1e7060b
...
@@ -508,6 +508,14 @@ class BuiltinDataset(OnDiskDataset):
...
@@ -508,6 +508,14 @@ class BuiltinDataset(OnDiskDataset):
.. note::
.. note::
Reverse edges are added to the original graph.
Reverse edges are added to the original graph.
**ogb-lsc-mag240m**
The ogb-lsc-mag240m dataset is a heterogeneous academic graph extracted
from the Microsoft Academic Graph (MAG). See more details in
`ogb-lsc-mag240m <https://ogb.stanford.edu/docs/lsc/mag240m/>`_.
.. note::
Reverse edges are added to the original graph.
Parameters
Parameters
----------
----------
name : str
name : str
...
@@ -517,7 +525,12 @@ class BuiltinDataset(OnDiskDataset):
...
@@ -517,7 +525,12 @@ class BuiltinDataset(OnDiskDataset):
"""
"""
_base_url
=
"https://data.dgl.ai/dataset/graphbolt/"
_base_url
=
"https://data.dgl.ai/dataset/graphbolt/"
_datasets
=
[
"ogbn-mag"
,
"ogbl-citation2"
,
"ogbn-products"
]
_datasets
=
[
"ogbn-mag"
,
"ogbl-citation2"
,
"ogbn-products"
,
"ogb-lsc-mag240m"
,
]
def
__init__
(
self
,
name
:
str
,
root
:
str
=
"datasets"
)
->
OnDiskDataset
:
def
__init__
(
self
,
name
:
str
,
root
:
str
=
"datasets"
)
->
OnDiskDataset
:
dataset_dir
=
os
.
path
.
join
(
root
,
name
)
dataset_dir
=
os
.
path
.
join
(
root
,
name
)
...
...
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