EdmondsKarpDefaultTraits

Declared in lemon/edmonds_karp.h, in the group Maximum Flow Algorithms; the same struct on the Doxygen site.

template< typename GR , typename CAP >
struct EdmondsKarpDefaultTraits

Default traits class of EdmondsKarp class.

Template Parameters:
  • GR – Digraph type.

  • CAP – Type of capacity map.

Public Types

typedef GR Digraph

The digraph type the algorithm runs on.

typedef CAP CapacityMap

The type of the map that stores the arc capacities. It must meet the ReadMap concept.

typedef CapacityMap::Value Value

The type of the flow values.

typedef GR::ArcMap< Value > FlowMap

The type of the map that stores the flow values. It must meet the ReadWriteMap concept.

typedef lemon::Tolerance< Value > Tolerance

The tolerance used by the algorithm.

The tolerance used by the algorithm to handle inexact computation.

Public Static Functions

static inline FlowMap * createFlowMap( const Digraph & digraph )

Instantiates a FlowMap.

This function instantiates a FlowMap.

Parameters:

digraph – The digraph for which we would like to define the flow map.