fixes issues #768, #794, #812

This commit is contained in:
Dennis Luxen 2013-12-11 15:36:32 -05:00
parent fdfe0ce63d
commit d5eee3138f

View File

@ -349,13 +349,16 @@ void EdgeBasedGraphFactory::Run(
continue; continue;
} }
if( is_barrier_node && (u != w) ) { if( is_barrier_node) {
++skipped_turns_counter; if(u != w) {
continue; ++skipped_turns_counter;
} continue;
}
if( (u == w) && (1 != m_node_based_graph->GetOutDegree(v)) ) { } else {
continue; 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 //only add an edge if turn is not a U-turn except when it is