27 #include "../exceptions.h"
29 #include "one_way_ring.h"
31 namespace pagmo {
namespace topology {
45 pagmo_assert(t_size != 0);
53 pagmo_assert(n != m_first);
72 return "One way ring";
boost::shared_ptr< base > base_ptr
Alias for shared pointer to base topology.
std::string get_name() const
Get name of the topology.
void remove_edge(const vertices_size_type &, const vertices_size_type &)
Remove an edge.
void connect(const vertices_size_type &)
Establish connections between islands during a push_back() operation.
vertices_size_type get_number_of_vertices() const
Get number of vertices.
one_way_ring()
Default constructor.
graph_type::vertices_size_type vertices_size_type
Vertices size type.
base_ptr clone() const
Clone method.
void add_edge(const vertices_size_type &, const vertices_size_type &)
Add an edge.
Uni-directional ring topology.