CMR  1.3.0
Public Member Functions | List of all members
tu::decomposed_matroid Class Referenceabstract

#include <matroid_decomposition.hpp>

Inheritance diagram for tu::decomposed_matroid:
tu::decomposed_matroid_leaf tu::decomposed_matroid_separator

Public Member Functions

 decomposed_matroid (const matroid_element_set &elements, const matroid_element_set &extra_elements)
 
virtual ~decomposed_matroid ()
 
virtual bool is_leaf () const =0
 
virtual bool is_regular () const =0
 
const matroid_element_setelements () const
 
const matroid_element_setextra_elements () const
 

Detailed Description

Abstract node in a decomposition tree

Constructor & Destructor Documentation

◆ decomposed_matroid()

tu::decomposed_matroid::decomposed_matroid ( const matroid_element_set elements,
const matroid_element_set extra_elements 
)
explicit

Constructs the tree node

Parameters
elementsSet of matroid elements
extra_elementsSet of extra elements, i.e. those that pivots were made upon

◆ ~decomposed_matroid()

tu::decomposed_matroid::~decomposed_matroid ( )
virtual

Destructor

Member Function Documentation

◆ elements()

const matroid_element_set& tu::decomposed_matroid::elements ( ) const
inline
Returns
A read-only reference to the elements

◆ extra_elements()

const matroid_element_set& tu::decomposed_matroid::extra_elements ( ) const
inline
Returns
A read-only reference to the extra elements

◆ is_leaf()

virtual bool tu::decomposed_matroid::is_leaf ( ) const
pure virtual
Returns
true if and only if this node is a leaf

Implemented in tu::decomposed_matroid_separator, and tu::decomposed_matroid_leaf.

◆ is_regular()

virtual bool tu::decomposed_matroid::is_regular ( ) const
pure virtual
Returns
true if and only if the matroid is graphic

Implemented in tu::decomposed_matroid_separator, and tu::decomposed_matroid_leaf.


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