https://github.com/kit-parco/networkit
Tip revision: 14af862e927f181320151c31fd57857374b4c9e0 authored by Florian Weber on 22 September 2014, 15:42:37 UTC
simplify some number-parsing-code
simplify some number-parsing-code
Tip revision: 14af862
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;
}