Program Listing for File RmatGenerator.hpp

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

/*
 * RmatGenerator.hpp
 *
 *  Created on: 18.03.2014
 *      Author: Henning
 */

#ifndef NETWORKIT_GENERATORS_RMAT_GENERATOR_HPP_
#define NETWORKIT_GENERATORS_RMAT_GENERATOR_HPP_

#include <networkit/generators/StaticGraphGenerator.hpp>
#include <networkit/graph/Graph.hpp>

namespace NetworKit {

class RmatGenerator final : public StaticGraphGenerator {
    count scale;
    count edgeFactor;
    double a, b, c;
    double defaultEdgeWeight;
    bool weighted;
    count reduceNodes;

public:
    RmatGenerator(count scale, count edgeFactor, double a, double b, double c, double d,
                  bool weighted = false, count reduceNodes = 0);

    Graph generate() override;
};

} /* namespace NetworKit */
#endif // NETWORKIT_GENERATORS_RMAT_GENERATOR_HPP_