https://github.com/kit-parco/networkit
Raw File
Tip revision: 0d7ba4f0d7f0358437ec203f49c3c1515a16243d authored by cls on 07 September 2015, 10:35:15 UTC
close branch 'profiling' after merge -> Dev
Tip revision: 0d7ba4f
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;

}

back to top