https://github.com/kit-parco/networkit
Raw File
Tip revision: 6387ae6922014683e01f3c59e86f5bf8ff0bff5d authored by Moritz von Looz on 30 June 2014, 09:58:24 UTC
added consistency check for multiedges
Tip revision: 6387ae6
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;

}

back to top