Program Listing for File BarabasiAlbertGenerator.hpp

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

/*
 * BarabasiAlbertGenerator.hpp
 *
 *  Created on: May 28, 2013
 *      Author: forigem
 */

#ifndef NETWORKIT_GENERATORS_BARABASI_ALBERT_GENERATOR_HPP_
#define NETWORKIT_GENERATORS_BARABASI_ALBERT_GENERATOR_HPP_

#include <networkit/generators/StaticGraphGenerator.hpp>

namespace NetworKit {

class BarabasiAlbertGenerator final : public StaticGraphGenerator {
    Graph initGraph;
    count k{0};
    count nMax{0};
    count n0{0};
    bool batagelj;

public:
    BarabasiAlbertGenerator() = default;

    BarabasiAlbertGenerator(count k, count nMax, count n0 = 0, bool batagelj = true);

    BarabasiAlbertGenerator(count k, count nMax, const Graph &initGraph, bool batagelj = true);

    Graph generate() override;
};

} /* namespace NetworKit */
#endif // NETWORKIT_GENERATORS_BARABASI_ALBERT_GENERATOR_HPP_