https://github.com/kit-parco/networkit
Revision 0c5dfa98d5273c31f2972467fc3f1a6136004beb authored by cls on 19 November 2015, 21:59:21 UTC, committed by cls on 19 November 2015, 21:59:21 UTC
1 parent 5a7f005
Raw File
Tip revision: 0c5dfa98d5273c31f2972467fc3f1a6136004beb authored by cls on 19 November 2015, 21:59:21 UTC
close branch
Tip revision: 0c5dfa9
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