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