parent
							
								
									fdfe0ce63d
								
							
						
					
					
						commit
						d5eee3138f
					
				@ -349,14 +349,17 @@ void EdgeBasedGraphFactory::Run(
 | 
			
		||||
                    continue;
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                if( is_barrier_node && (u != w) ) {
 | 
			
		||||
                if( is_barrier_node) {
 | 
			
		||||
                    if(u != w) {
 | 
			
		||||
                        ++skipped_turns_counter;
 | 
			
		||||
                        continue;
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
                if( (u == w) && (1 != m_node_based_graph->GetOutDegree(v)) ) {
 | 
			
		||||
                } else {
 | 
			
		||||
                    if ( (u == w) && (m_node_based_graph->GetOutDegree(v) > 1) ) {
 | 
			
		||||
                        ++skipped_turns_counter;
 | 
			
		||||
                        continue;
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
 | 
			
		||||
                //only add an edge if turn is not a U-turn except when it is
 | 
			
		||||
                //at the end of a dead-end street
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user