25 #ifndef PAGMO_TOPOLOGY_WATTS_STROGATZ_H
26 #define PAGMO_TOPOLOGY_WATTS_STROGATZ_H
31 #include "../config.h"
33 #include "../serialization.h"
36 namespace pagmo {
namespace topology {
62 std::string get_name()
const;
67 friend class boost::serialization::access;
68 template <
class Archive>
69 void serialize(Archive &ar,
const unsigned int)
71 ar & boost::serialization::base_object<base>(*this);
72 ar &
const_cast<std::size_t &
>(m_k);
73 ar &
const_cast<double &
>(m_beta);
77 const std::size_t m_k;
boost::shared_ptr< base > base_ptr
Alias for shared pointer to base topology.
This rng returns an unsigned integer in the [0,2**32-1] range.
graph_type::vertices_size_type vertices_size_type
Vertices size type.
Watts-Strogatz network model.
This rng returns a double in the [0,1[ range.