25 #include <boost/numeric/conversion/cast.hpp>
31 namespace pagmo {
namespace topology {
59 base::add_edge(boost::numeric_cast<vertices_size_type>(n),boost::numeric_cast<vertices_size_type>(m));
73 base::remove_edge(boost::numeric_cast<vertices_size_type>(n),boost::numeric_cast<vertices_size_type>(m));
boost::shared_ptr< base > base_ptr
Alias for shared pointer to base topology.
void remove_all_edges()
Remove all edges.
base_ptr clone() const
Clone method.
void remove_edge(const vertices_size_type &, const vertices_size_type &)
Remove an edge.
void add_edge(int, int, double=1.0)
Add an edge.
graph_type::vertices_size_type vertices_size_type
Vertices size type.
void remove_all_edges()
Remove all edges.
custom()
Default constructor.
void connect(const vertices_size_type &)
Establish connections between islands during a push_back() operation.
void remove_edge(int, int)
Remove an edge.
std::string get_name() const
Get name of the topology.
void add_edge(const vertices_size_type &, const vertices_size_type &)
Add an edge.
void set_weight(double)
Sets the migration probability.