Neighbors – abstract !

antnet.cc:extern int N; ///< number of neighbors of a node

antnet.cc: N = get_num_neighbors(node_addr);

antnet.cc: int num_nb = get_num_neighbors(node_addr);

antnet.cc: // read list of neighbors

antnet.cc:/// Method to print neighbors of a node

antnet.cc:Antnet::print_neighbors() {

antnet.cc:/// Method to add neighbors of a node

antnet_common.cc:/// Method to return number of neighbors of a node

antnet_common.cc:get_num_neighbors(nsaddr_t node_addr) {

antnet_common.h:/// Method to return number of neighbors of a node

antnet_common.h:int get_num_neighbors(nsaddr_t node_addr); Binary file

antnet.h: /// print neighbors of a node

antnet.h: void print_neighbors(); Binary file

antnet_rtable.cc:int N; ///< Number of neighbors of a node

antnet_rtable.cc: fprintf(stdout,”neighbors of %d:\t”,source);

antnet_rtable.h:/// Vector of neighbors all having same and maximum pheromone value scripts/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: