https://github.com/kit-parco/networkit
Tip revision: 3559d25f8449a14ef4d7d0244b2b85b8c65661d9 authored by Gerd Lindner on 03 April 2016, 17:27:23 UTC
comment about naming scheme in gephi streaming user guide
comment about naming scheme in gephi streaming user guide
Tip revision: 3559d25
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;
}