tests.cpp File Reference

program for running some tests on parts of the graphgen library More...

#include <iostream>
#include <cmath>
#include <algorithm>
#include <ctype.h>
#include <stdlib.h>
#include <unistd.h>
#include "graphgen.hpp"

Include dependency graph for tests.cpp:


Typedefs

typedef undirected_graph Graph
 configuration typedefs
typedef link_weight< weightvt > Weight
typedef canonical< Weight,
shape::simple
Ensemble

Functions

double f1 (qint)
double f1 (qint q, qint k)
double p_a (qint q, qint k)
double p_b (qint q, qint k)
double r_BA (qint q)
double p_inv (qint q)
template<class E>
int crosscheck_rates_weights (E &e)
template<class E>
int check_degrees (E &e)
int batch_estimates ()
int batch_rates_weights ()
void check_estimates ()
bool crosscheck_vertex_weights ()
template<class E>
void DumpGraphs (int N)
void calculate_degree_distribution (const histomatrix &E, std::vector< double > &pi)
void dump_average_degrees ()
void print_help ()
int main (int argc, char **argv)

Variables

int NV = 1000
 default parameters
int NL = 3000
int NS = 1000
const value_type::weight_value_type weightvt = value_type::weight

Detailed Description

program for running some tests on parts of the graphgen library


Function Documentation

template<class E>
int crosscheck_rates_weights ( E &  e  )  [inline]

check difference | W_abs - W_rel | < allowed_error

References graphgen::graph_weight(), and graphgen::tab().


Generated on Wed Jun 2 14:49:06 2010 for GraphGen by  doxygen 1.5.6