25 #ifndef PAGMO_TOPOLOGY_ERDOS_RENYI_H
26 #define PAGMO_TOPOLOGY_ERDOS_RENYI_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<double &
>(m_prob);
Erdős-Rényi graph topology.
boost::shared_ptr< base > base_ptr
Alias for shared pointer to base topology.
graph_type::vertices_size_type vertices_size_type
Vertices size type.
This rng returns a double in the [0,1[ range.