CMR
1.3.0
|
#include <nested_minor_sequence.hpp>
Public Types | |
enum | extension_type { FIRST_EXTENSION_TYPE = -2 , ONE_ROW = -2 , ONE_ROW_TWO_COLUMNS = -1 , ONE_ROW_ONE_COLUMN = 0 , TWO_ROWS_ONE_COLUMN = 1 , ONE_COLUMN = 2 , BEYOND_EXTENSION_TYPE = 3 } |
Public Member Functions | |
nested_minor_sequence () | |
virtual | ~nested_minor_sequence () |
void | push (extension_type type) |
extension_type | get_extension (size_t index) const |
size_t | get_extension_height (size_t index) const |
size_t | get_extension_width (size_t index) const |
size_t | height () const |
size_t | width () const |
size_t | size () const |
void | resize (size_t new_size) |
Static Public Member Functions | |
static size_t | get_extension_height (extension_type type) |
static size_t | get_extension_width (extension_type type) |
Models a sequence of nested matroid-minors by storing each nesting-step with type and size information.
tu::nested_minor_sequence::nested_minor_sequence | ( | ) |
Constructs a sequence which only consists of a W3-minor.
|
virtual |
Destructor
|
inline |
Returns the extension type of a specific minor.
index | Index of the extension. 0 means the extension from W3 to the next |
|
static |
Returns the number of rows in an extension of a given type.
type | Extension type |
Returns the number of rows in an extension of a given type.
ext | Extension type |
|
inline |
Returns the number of rows in a specific extension
index | Index of the extension. 0 means the extension from W3 to the next |
|
static |
Returns the number of columns in an extension of a given type.
type | Extension type |
Returns the number of columns in an extension of a given type.
ext | Extension type |
|
inline |
Returns the number of columns in a specific extension
index | Index of the extension. 0 means the extension from W3 to the next |
|
inline |
void tu::nested_minor_sequence::push | ( | extension_type | type | ) |
Augments the sequence with a minor of the specified extension type.
type | The extension type of the biggest minor |
|
inline |
|
inline |
|
inline |