Fix fore core factors < 0.3
This commit is contained in:
		
							parent
							
								
									e45656e5bf
								
							
						
					
					
						commit
						9ef1f8cba3
					
				| @ -555,11 +555,20 @@ class Contractor | |||||||
| 
 | 
 | ||||||
|         if (remaining_nodes.size() > 2) |         if (remaining_nodes.size() > 2) | ||||||
|         { |         { | ||||||
|             // TODO: for small cores a sorted array of core ids might also work good
 |             if (orig_node_id_from_new_node_id_map.empty()) | ||||||
|             for (const auto &node : remaining_nodes) |  | ||||||
|             { |             { | ||||||
|                 auto orig_id = orig_node_id_from_new_node_id_map[node.id]; |                 for (const auto &node : remaining_nodes) | ||||||
|                 is_core_node[orig_id] = true; |                 { | ||||||
|  |                     is_core_node[node.id] = true; | ||||||
|  |                 } | ||||||
|  |             } | ||||||
|  |             else | ||||||
|  |             { | ||||||
|  |               for (const auto &node : remaining_nodes) | ||||||
|  |               { | ||||||
|  |                   auto orig_id = orig_node_id_from_new_node_id_map[node.id]; | ||||||
|  |                   is_core_node[orig_id] = true; | ||||||
|  |               } | ||||||
|             } |             } | ||||||
|         } |         } | ||||||
|         else |         else | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user