-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathprepare_data.py
34 lines (30 loc) · 1.04 KB
/
prepare_data.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 2021, Zhao CHEN
# All rights reserved.
import coo_graph
import argparse
def main():
cached = True
r = coo_graph.COO_Graph_Full('cora')
# r = coo_graph.COO_Graph('reddit')
# r = coo_graph.COO_Graph('test', full_graph_cache_enabled=cached)
# r = coo_graph.COO_Graph('flickr', full_graph_cache_enabled=cached)
# r = coo_graph.COO_Graph('reddit', full_graph_cache_enabled=cached)
# r = coo_graph.COO_Graph('ogbn-arxiv', full_graph_cache_enabled=cached)
# r.partition(8)
r.partition(2)
return
# for name in ['amazon-products', 'ogbn-products']:
# for name in ['ogbn-arxiv', 'ogbn-products']:
# r = coo_graph.COO_Graph(name, full_graph_cache_enabled=cached)
# r.partition(4)
# r.partition(8)
# print(r)
# return
# for name in ['reddit', 'yelp', 'flickr', 'cora', 'ogbn-arxiv']:
# r = coo_graph.COO_Graph(name, full_graph_cache_enabled=cached)
# r.partition(8)
# r.partition(4)
# print(r)
# return
if __name__ == '__main__':
main()