Program Listing for File ClusteredRandomGraphGenerator.hpp

Return to documentation for file (include/networkit/generators/ClusteredRandomGraphGenerator.hpp)

/*
 * ClusteredRandomGraphGenerator.hpp
 *
 *  Created on: 28.02.2014
 *      Author: cls
 *              Eugenio Angriman <angrimae@hu-berlin.de>
 */

#ifndef NETWORKIT_GENERATORS_CLUSTERED_RANDOM_GRAPH_GENERATOR_HPP_
#define NETWORKIT_GENERATORS_CLUSTERED_RANDOM_GRAPH_GENERATOR_HPP_

#include <networkit/generators/StaticGraphGenerator.hpp>
#include <networkit/structures/Partition.hpp>

namespace NetworKit {

class ClusteredRandomGraphGenerator final : public StaticGraphGenerator {
public:
    ClusteredRandomGraphGenerator(count n, count k, double pIntra, double pInter);

    Graph generate() override;

    Partition getCommunities();

private:
    const count n, k;
    const double pIntra, pInter;
    Partition zeta;
};

} /* namespace NetworKit */

#endif // NETWORKIT_GENERATORS_CLUSTERED_RANDOM_GRAPH_GENERATOR_HPP_