↰ Return to documentation for file (include/networkit/generators/ErdosRenyiGenerator.hpp
)
/*
* ErdosRenyiGenerator.hpp
*
* Created on: 21.01.2014
* Author: Henning
*/
#ifndef NETWORKIT_GENERATORS_ERDOS_RENYI_GENERATOR_HPP_
#define NETWORKIT_GENERATORS_ERDOS_RENYI_GENERATOR_HPP_
#include <networkit/generators/StaticGraphGenerator.hpp>
namespace NetworKit {
class ErdosRenyiGenerator final : public StaticGraphGenerator {
public:
ErdosRenyiGenerator(count nNodes, double prob, bool directed = false, bool self_loops = false);
Graph generate() override;
private:
node nNodes;
double prob;
bool directed;
bool self_loops;
};
} /* namespace NetworKit */
#endif // NETWORKIT_GENERATORS_ERDOS_RENYI_GENERATOR_HPP_