Named parameter for setting Elevator type with automatic allocation. The Elevator should have standard constructor interface to be able to automatically created by the algorithm (i.e. the graph and the maximum level should be passed to it). However an external elevator object could also be passed to the algorithm with the elevator() function before calling run() or init().
#include <lemon/fractional_matching.h>
Additional Inherited Members | |
![]() | |
typedef SetStandardElevatorTraits< T > | Traits |
The traitsclass" of the algorithm. | |
typedef SetStandardElevatorTraits< T > ::Graph | Graph |
The type of the graph the algorithm runs on. | |
typedef SetStandardElevatorTraits< T > ::MatchingMap | MatchingMap |
The type of the matching map. | |
typedef SetStandardElevatorTraits< T > ::Elevator | Elevator |
The type of the elevator. | |
![]() | |
MaxFractionalMatching (const Graph &graph, bool allow_loops=true) | |
MaxFractionalMatching & | matchingMap (MatchingMap &map) |
Sets the matching map. | |
MaxFractionalMatching & | elevator (Elevator &elevator) |
Sets the elevator used by algorithm. | |
const Elevator & | elevator () const |
Returns a const reference to the elevator. | |
const MatchingMap & | matchingMap () const |
Returns a const reference to the matching map. | |
int | matchingSize () const |
Return the number of covered nodes in the matching. | |
int | matching (const Edge &edge) const |
Return true if the given edge is in the matching. | |
Arc | matching (const Node &node) const |
Return the fractional matching arc (or edge) incident to the given node. | |
bool | barrier (const Node &node) const |
Returns true if the node is in the barrier. | |
void | init () |
Initializes the internal data structures. | |
void | start (bool postprocess=true) |
Starts the algorithm and computes a fractional matching. | |
bool | startPerfect (bool postprocess=true) |
Starts the algorithm and computes a perfect fractional matching. | |
void | run (bool postprocess=true) |
Runs the algorithm. | |
bool | runPerfect (bool postprocess=true) |
Runs the algorithm to find a perfect fractional matching. | |
![]() | |
static const int | primalScale |