#include #include #include #include #include #include using namespace paradiseo::smp; int main() { int n; //Test of Complete Topology n=5; Topology topo_comp; topo_comp.construct(n); std::cout << std::endl << "---------------" << std::endl << "Test of Complete Topology (" << n <<" nodes) :"< neighbors=topo_comp.getIdNeighbors(1); std::cout << "neighbors of Node 1 : "< topo_star; topo_star.construct(n); std::cout << std::endl << "---------------" << std::endl << "Test of Star Topology (" << n <<" nodes) :" << std::endl; neighbors=topo_star.getIdNeighbors(0); std::cout < topo_ring; topo_ring.construct(n); std::cout << std::endl << "---------------" << std::endl << "Test of Ring Topology (" << n <<" nodes) :" << std::endl; neighbors=topo_ring.getIdNeighbors(4); std::cout <