https://github.com/kit-parco/networkit
Tip revision: 2478f22778f24a458964e1cd0c0beffecdc9538a authored by maxv on 05 July 2016, 16:26:08 UTC
merge for release of 4.1.1
merge for release of 4.1.1
Tip revision: 2478f22
LibDemo.cpp
#include <NetworKit/io/METISGraphReader.h>
#include <NetworKit/auxiliary/Log.h>
#include <NetworKit/community/PLM.h>
#include <iostream>
int main() {
std::cout << "simple demonstration of NetworKit as a library\n";
Aux::Log::Settings::setLogLevel(Aux::Log::LogLevel::info);
NetworKit::METISGraphReader reader;
NetworKit::Graph jazz = reader.read("./input/jazz.graph");
NetworKit::PLM plm(jazz,true);
plm.run();
NetworKit::Partition communities = plm.getPartition();
std::cout << communities.numberOfSubsets() << " communities have been found\n";
return 0;
}