| 526 | graph, small_graph, label |
| 527 | """ |
| 528 | def __init__(self): |
| 529 | super(Friendster, self).__init__( |
| 530 | "friendster", |
| 531 | urls={ |
| 532 | "graph": "https://snap.stanford.edu/data/bigdata/communities/com-friendster.ungraph.txt.gz", |
| 533 | "small_graph": ["https://snap.stanford.edu/data/bigdata/communities/com-friendster.ungraph.txt.gz", |
| 534 | "https://snap.stanford.edu/data/bigdata/communities/com-friendster.all.cmty.txt.gz"], |
| 535 | "label": "https://snap.stanford.edu/data/bigdata/communities/com-friendster.top5000.cmty.txt.gz" |
| 536 | } |
| 537 | ) |
| 538 | |
| 539 | def small_graph_preprocess(self, graph_file, label_file, save_file): |
| 540 | self.induced_graph(graph_file, label_file, save_file) |