graphgen::value_type Struct Reference

Enumeration type template parameter to specify weight calculation and handling. More...

#include <weight.hpp>

List of all members.

Public Types

enum  weight_value_type {
  weight, ratio, logweight, logratio,
  one
}


Detailed Description

Enumeration type template parameter to specify weight calculation and handling.

The difference between weight- (logweight) and ratio- (logratio) type weights is how the initialization function is treated, how values are precalculated, but when reading values from the weights, this is transparent.

The difference between weight- (ratio-) and logweight (logratio) is that for the latter the init function must be and the output will be the natural logarithm of the value.

one gives a uniform weight

See also:
vertex_weight

link_weight


The documentation for this struct was generated from the following file:

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