https://github.com/kit-parco/networkit
Tip revision: 9654a58afd25d9a6fe797110b6a94698fa6f31d7 authored by cls on 01 August 2014, 13:00:17 UTC
closing branch plmmod
closing branch plmmod
Tip revision: 9654a58
LibDemo.cpp
#include <NetworKit/io/FastMETISGraphReader.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::FastMETISGraphReader reader;
NetworKit::Graph jazz = reader.read("./input/jazz.graph");
NetworKit::PLM plm(true);
NetworKit::Partition communities = plm.run(jazz);
std::cout << communities.numberOfSubsets() << " communities have been found\n";
return 0;
}