<commit_before>/*
 * ApproxBetweennessGTest.cpp
 *
 *  Created on: 30.06.2014
 *      Author: moritzl
 */

#include "ApproxBetweennessGTest.h"
#include "../ApproxBetweenness.h"
#include "../../generators/ErdosRenyiGenerator.h"

namespace NetworKit {

ApproxBetweennessGTest::ApproxBetweennessGTest() {
	// TODO Auto-generated constructor stub

}

ApproxBetweennessGTest::~ApproxBetweennessGTest() {
	// TODO Auto-generated destructor stub
}

TEST_F(ApproxBetweennessGTest, testPedanticDiameterErdos) {
	ErdosRenyiGenerator gen(5000,0.001);
	Graph G1 = gen.generate();
	ApproxBetweenness approx(G1);
	approx.run();
}

TEST_F(ApproxBetweennessGTest, testApproxDiameterErdos) {
	ErdosRenyiGenerator gen(10000,0.001);
	Graph G1 = gen.generate();
	ApproxBetweenness approx(G1, 0.05, 0.1, 20);<commit_msg>removed redundant test<commit_after>/*
 * ApproxBetweennessGTest.cpp
 *
 *  Created on: 30.06.2014
 *      Author: moritzl
 */

#include "ApproxBetweennessGTest.h"
#include "../ApproxBetweenness.h"
#include "../../generators/ErdosRenyiGenerator.h"

namespace NetworKit {

ApproxBetweennessGTest::ApproxBetweennessGTest() {
	// TODO Auto-generated constructor stub

}

ApproxBetweennessGTest::~ApproxBetweennessGTest() {
	// TODO Auto-generated destructor stub
}

TEST_F(ApproxBetweennessGTest, testApproxDiameterErdos) {
	ErdosRenyiGenerator gen(10000,0.001);
	Graph G1 = gen.generate();
	ApproxBetweenness approx(G1, 0.05, 0.1, 20);
{'fraction_non_alphanumeric': 0.1270949720670391, 'fraction_numerical': 0.04329608938547486, 'mean_word_length': 5.397321428571429, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3515470', 'n_tokens_mistral': 575, 'n_tokens_neox': 514, 'n_words': 85}