Research Article

Routing Protocol in VANETs Equipped with Directional Antennas: Topology-Based Neighbor Discovery and Routing Analysis

Algorithm 3

Extreme situation treatment.
Input:  
Output:  
for  every neighbor node   do
if    then
end if
end for
if    is null  then
for  every neighbor node   do
if  j has different neighbor nodes compared to   then
end if
end for
end if