Research Article

Towards Exploration of Social in Social Internet of Vehicles Using an Agent-Based Simulation

Algorithm 3

Replace algorithm.

2: while () do
  
4:  
  if () then
6:   
  else
8:   
   
10:  while () do
    
12:   
    
14:   while () do
     
16:    if () then
      
18:     
      
20:    else
      
22:     end if
     
24:   end while
   end while
26:  end if
end while