I think there is a bug in OLSR::degree() method:
This met开发者_C百科hod calculates the number of symmetric neighbors of node y, EXCLUDING all the members of N.
I think
OLSR_nb_tuple* nb_tuple =
state_.find_nb_tuple(nb2hop_tuple->nb_main_addr());
should be
OLSR_nb_tuple* nb_tuple =
state_.find_nb_tuple(nb2hop_tuple->2_hop_addr());
Am I right?
Yes friend, you're right. this is a bug. The correct line is:
OLSR_nb_tuple* nb_tuple =
state_.find_nb_tuple(nb2hop_tuple->2_hop_addr());
i'm using UM-OLSR version 0.8.8 and the fix you guys gave did not compile, the correct way to fix the bug in UM-OLSR version 0.8.8 is:
OLSR_nb_tuple* nb_tuple =
state_.find_nb_tuple(nb2hop_tuple->nb2hop_addr());
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论