Line too long (109 > 79 characters):
25 aut_group = gt_topology.subgraph_isomorphism(graph, graph, induced=False, subgraph=True, generator=False)Line too long (94 > 79 characters):
31 # whenever two nodes can be mapped via some automorphism, they are assigned the same orbitLine too long (95 > 79 characters):
43 _, contiguous_orbit_membership = np.unique(orbit_membership_list[1], return_inverse = True)Line too long (115 > 79 characters):
45 orbit_membership = {vertex: contiguous_orbit_membership[i] for i,vertex in enumerate(orbit_membership_list[0])}Line too long (110 > 79 characters):
50 orbit_partition[orbit] = [vertex] if orbit not in orbit_partition else orbit_partition[orbit]+[vertex]Line too long (82 > 79 characters):
55 print('Orbit partition of given substructure: {}'.format(orbit_partition))Line too long (93 > 79 characters):
64 ##### induced edge automorphism orbits (according to the vertex automorphism group) #####Line too long (87 > 79 characters):
67 directed_orbits=kwargs['directed_orbits'] if 'directed_orbits' in kwargs else FalseLine too long (98 > 79 characters):
69 graph, orbit_partition, orbit_membership, aut_count = automorphism_orbits(edge_list=edge_list,Line too long (96 > 79 characters):
70 directed=directed,Line too long (95 > 79 characters):
71 print_msgs=False)Line too long (105 > 79 characters):
79 edge_list = to_undirected(torch.tensor(graph.get_edges()).transpose(1,0)).transpose(1,0).tolist()Line too long (90 > 79 characters):
86 edge_orbit = frozenset([orbit_membership[edge[0]], orbit_membership[edge[1]]])Line too long (88 > 79 characters):
101 print('Edge orbit partition of given substructure: {}'.format(edge_orbit_partition))Line too long (103 > 79 characters):
112 subgraph_dict, induced, num_nodes = kwargs['subgraph_dict'], kwargs['induced'], kwargs['num_nodes']Line too long (127 > 79 characters):
121 sub_iso = gt_topology.subgraph_isomorphism(subgraph_dict['subgraph'], G_gt, induced=induced, subgraph=True, generator=True)Line too long (139 > 79 characters):
152 subgraph_edges = to_undirected(torch.tensor(subgraph_dict['subgraph'].get_edges().tolist()).transpose(1,0)).transpose(1,0).tolist()Line too long (127 > 79 characters):
161 sub_iso = gt_topology.subgraph_isomorphism(subgraph_dict['subgraph'], G_gt, induced=induced, subgraph=True, generator=True)Line too long (83 > 79 characters):
164 counts = np.zeros((edge_index.shape[0], len(subgraph_dict['orbit_partition'])))Line too long (100 > 79 characters):
171 # for every edge in the graph H, find the edge in the subgraph G_S to which it is mappedLine too long (89 > 79 characters):
173 # Then, increase the count of the matched edge w.r.t. the corresponding orbitLine too long (109 > 79 characters):
206 aut_group = gt_topology.subgraph_isomorphism(graph, graph, induced=False, subgraph=True, generator=False)Line too long (125 > 79 characters):
222 aut_group_edges = gt_topology.subgraph_isomorphism(line_graph, line_graph, induced=False, subgraph=True, generator=False)Line too long (95 > 79 characters):
238 _, contiguous_orbit_membership = np.unique(orbit_membership_list[1], return_inverse = True)Line too long (115 > 79 characters):
240 orbit_membership = {vertex: contiguous_orbit_membership[i] for i,vertex in enumerate(orbit_membership_list[0])}Line too long (144 > 79 characters):
244 orbit_partition[orbit] = [inverse_mapping[vertex]] if orbit not in orbit_partition else orbit_partition[orbit]+[inverse_mapping[vertex]]Line too long (80 > 79 characters):
246 ##### transfer line graph vertex automorphism orbits to original edges #####Line too long (107 > 79 characters):
250 mapped_edge = mapping[tuple(edge)] if tuple(edge) in mapping else mapping[tuple([edge[1],edge[0]])]Line too long (83 > 79 characters):
253 print('Edge orbit partition of given substructure: {}'.format(orbit_partition))Missing whitespace after ',':
37 orbit_membership_list = [[],[]]Missing whitespace after ',':
45 orbit_membership = {vertex: contiguous_orbit_membership[i] for i,vertex in enumerate(orbit_membership_list[0])}Missing whitespace after ';':
56 import pdb;pdb.set_trace()Missing whitespace after ',' (in 2 places):
79 edge_list = to_undirected(torch.tensor(graph.get_edges()).transpose(1,0)).transpose(1,0).tolist()Missing whitespace after ',':
82 for i,edge in enumerate(edge_list):Missing whitespace after ',':
116 G_gt.add_edge_list(list(edge_index.transpose(1,0).cpu().numpy()))Missing whitespace after ',':
129 for i,node in enumerate(sub_iso_curr):Missing whitespace after ',':
146 edge_index = edge_index.transpose(1,0).cpu().numpy()Missing whitespace after ',' (in 2 places):
152 subgraph_edges = to_undirected(torch.tensor(subgraph_dict['subgraph'].get_edges().tolist()).transpose(1,0)).transpose(1,0).tolist()Missing whitespace after ',':
169 for i,edge in enumerate(subgraph_edges):Missing whitespace after ',':
212 mapping = {node: i for i,node in enumerate(graph_nx_line.nodes)}Missing whitespace after ',':
213 inverse_mapping = {i: node for i,node in enumerate(graph_nx_line.nodes)}Missing whitespace after ',':
233 orbit_membership_list = [[],[]]Missing whitespace after ',':
240 orbit_membership = {vertex: contiguous_orbit_membership[i] for i,vertex in enumerate(orbit_membership_list[0])}Missing whitespace after ',':
249 for i,edge in enumerate(graph.get_edges()):Missing whitespace after ',':
250 mapped_edge = mapping[tuple(edge)] if tuple(edge) in mapping else mapping[tuple([edge[1],edge[0]])]Too many blank lines (2):
48 orbit_partition = {}Too many blank lines (2):
78 if not directed:Too many blank lines (2):
155 G_gt = gt.Graph(directed=directed)Too many blank lines (2):
164 counts = np.zeros((edge_index.shape[0], len(subgraph_dict['orbit_partition'])))Too many blank lines (2):
181 counts = counts/subgraph_dict['aut_count']Too many blank lines (5):
191 #----------------------- line graph edge automorphism: deprecatedToo many blank lines (3):
195 def edge_automorphism_orbits(edge_list, **kwargs):Unexpected spaces around keyword / parameter equals (in 2 places):
43 _, contiguous_orbit_membership = np.unique(orbit_membership_list[1], return_inverse = True)Unexpected spaces around keyword / parameter equals (in 2 places):
238 _, contiguous_orbit_membership = np.unique(orbit_membership_list[1], return_inverse = True)