https://github.com/kit-parco/networkit
Tip revision: 506f88f08358c7d246d3c661fdc9f53b0b281be7 authored by cls on 08 January 2016, 10:15:08 UTC
working on multiscale generator
working on multiscale generator
Tip revision: 506f88f
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;
}