'torch_geometric.utils.remove_self_loops' imported but unused:
4 from torch_geometric.utils import sort_edge_index, remove_self_loops'torch_geometric.utils.sort_edge_index' imported but unused:
4 from torch_geometric.utils import sort_edge_index, remove_self_loops'.utils_data_prep.load_data' imported but unused:
6 from .utils_data_prep import load_data, load_zinc_data, load_ogb_data, load_g6_graphs'.utils_data_prep.load_g6_graphs' imported but unused:
6 from .utils_data_prep import load_data, load_zinc_data, load_ogb_data, load_g6_graphs'.utils_graph_processing.automorphism_orbits' imported but unused:
7 from .utils_graph_processing import automorphism_orbits'multiprocessing as mp' imported but unused:
9 import multiprocessing as mpLine too long (85 > 79 characters):
6 from .utils_data_prep import load_data, load_zinc_data, load_ogb_data, load_g6_graphsLine too long (102 > 79 characters):
29 ### compute the orbits of earch substructure in the list, as well as the vertex automorphism countLine too long (88 > 79 characters):
40 subgraph_dicts.append({'subgraph': subgraph, 'orbit_partition': orbit_partition,Line too long (93 > 79 characters):
41 'orbit_membership': orbit_membership, 'aut_count': aut_count})Line too long (106 > 79 characters):
47 graphs, num_classes, num_node_type, num_edge_type = load_zinc_data(data_path, dataset_name, False)Line too long (82 > 79 characters):
52 ### parallel computation of subgraph isomoprhisms & creation of data structureLine too long (88 > 79 characters):
58 graphs_ptg = Parallel(n_jobs=num_processes, verbose=10)(delayed(_prepare)(graph,Line too long (97 > 79 characters):
59 subgraph_dicts,Line too long (98 > 79 characters):
60 subgraph_params,Line too long (95 > 79 characters):
61 dataset_name,Line too long (97 > 79 characters):
62 extract_ids_fn,Line too long (112 > 79 characters):
63 count_fn) for graph in graphs)Line too long (89 > 79 characters):
65 ### single-threaded computation of subgraph isomoprhisms & creation of data structureLine too long (110 > 79 characters):
69 new_data = _prepare(data, subgraph_dicts, subgraph_params, dataset_name, extract_ids_fn, count_fn)Line too long (87 > 79 characters):
73 return graphs_ptg, num_classes, num_node_type, num_edge_type, orbit_partition_sizesLine too long (81 > 79 characters):
78 def _prepare(data, subgraph_dicts, subgraph_params, dataset_name, ex_fn, cnt_fn):Line too long (84 > 79 characters):
86 setattr(new_data, 'degrees', torch_geo.utils.degree(new_data.edge_index[0]))Line too long (80 > 79 characters):
92 setattr(new_data, 'y', data.label.clone().detach().unsqueeze(0).float())Line too long (99 > 79 characters):
95 if new_data.edge_index.shape[1] == 0 and cnt_fn.__name__ == 'subgraph_isomorphism_edge_counts':Line too long (93 > 79 characters):
96 setattr(new_data, 'identifiers', torch.zeros((0, sum(orbit_partition_sizes))).long())