graphgen::degreedist Class Reference
[Estimate]

Degree distribution estimator. More...

#include <estimate.hpp>

Inheritance diagram for graphgen::degreedist:

Inheritance graph
[legend]
Collaboration diagram for graphgen::degreedist:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 degreedist (qint qmax)
 Create the estimator with a Histogram for k in [0,qmax].
void measure (const undirected_graph &G)
 Measure all degrees of the graph g.
void operator() (const undirected_graph &G)
const histogramHist () const
 return reference to degree histogram
const histogramMaxH () const
 return reference to maximal degree histogram
const histint & operator[] (qint q) const
 access histogram entries H(q)
qint kmax () const
 return maximal degree in histogram


Detailed Description

Degree distribution estimator.

Measurements update a degree histogram


Constructor & Destructor Documentation

graphgen::degreedist::degreedist ( qint  qmax  )  [inline]

Create the estimator with a Histogram for k in [0,qmax].

As measure(g) does no bounds checking, choose qmax sufficently large, for example to the (maximum) number of links in the graph


The documentation for this class was generated from the following files:

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