Changeset c44f1f9
- Timestamp:
 - Jan 10, 2025, 7:02:09 PM (10 months ago)
 - Branches:
 - master
 - Children:
 - c309af1
 - Parents:
 - 299bd989
 - File:
 - 
      
- 1 edited
 
- 
          
  src/BasicTypes-gen.cpp (modified) (1 diff)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
src/BasicTypes-gen.cpp
r299bd989 rc44f1f9 177 177 int i = graph[col].left; 178 178 if ( i == -1 ) continue; 179 q.emplace( i, cost + 1, scost + ! (graph[col].sign & graph[i].sign) );179 q.emplace( i, cost + max(1, graph[i].rank-graph[col].rank), scost + ! (graph[col].sign & graph[i].sign) ); 180 180 181 181 i = graph[col].middle; 182 182 if ( i == -1 ) continue; 183 q.emplace( i, cost + 1, scost + !(graph[col].sign & graph[i].sign) );183 q.emplace( i, cost + max(1, graph[i].rank-graph[col].rank), scost + !(graph[col].sign & graph[i].sign) ); 184 184 185 185 i = graph[col].right; 186 186 if ( i == -1 ) continue; 187 q.emplace( i, cost + 1, scost + !(graph[col].sign & graph[i].sign) );187 q.emplace( i, cost + max(1, graph[i].rank-graph[col].rank), scost + !(graph[col].sign & graph[i].sign) ); 188 188 } while ( ! q.empty() ); 189 189 } // generateCosts  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.