25 #ifndef PAGMO_TOPOLOGY_BARABASI_ALBERT_H
26 #define PAGMO_TOPOLOGY_BARABASI_ALBERT_H
31 #include "../config.h"
33 #include "../serialization.h"
36 namespace pagmo {
namespace topology {
59 std::string get_name()
const;
62 std::string human_readable_extra()
const;
64 friend class boost::serialization::access;
65 template <
class Archive>
66 void serialize(Archive &ar,
const unsigned int)
68 ar & boost::serialization::base_object<base>(*this);
69 ar &
const_cast<std::size_t &
>(m_m0);
70 ar &
const_cast<std::size_t &
>(m_m);
75 const std::size_t m_m0;
77 const std::size_t m_m;
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.
Barabási-Albert graph topology.
This rng returns a double in the [0,1[ range.