Struct to iterate over all node subsets of a given size. More...
#include <ogdf/graphalg/NodeColoringModule.h>
Public Types | |
| using | Index = int |
| Data type for the indices. | |
Public Member Functions | |
| SubsetIterator (Array< node > &set, Index subsetSize) | |
| Creates the SubsetIterator with a given set to iterate and the size of the subsets. | |
| bool | advance () |
| Advances the iterator so that the next subset can be queried. | |
| List< node > | currentSubset () |
| Returns the current subset. | |
| bool | isOk () |
| Returns if the iterator, i.e. | |
Public Attributes | |
| Array< Index > | m_indices |
| Index | m_numElements |
| Array< node > & | m_set |
Struct to iterate over all node subsets of a given size.
Definition at line 120 of file NodeColoringModule.h.
| using ogdf::NodeColoringModule::SubsetIterator::Index = int |
Data type for the indices.
Definition at line 124 of file NodeColoringModule.h.
|
inline |
Creates the SubsetIterator with a given set to iterate and the size of the subsets.
| set | The given node set as array |
| subsetSize | The size of each subset |
Definition at line 137 of file NodeColoringModule.h.
|
inline |
Advances the iterator so that the next subset can be queried.
Definition at line 178 of file NodeColoringModule.h.
Returns the current subset.
Definition at line 164 of file NodeColoringModule.h.
|
inline |
Returns if the iterator, i.e.
the next subset to extract is ok.
Definition at line 150 of file NodeColoringModule.h.
Definition at line 127 of file NodeColoringModule.h.
| Index ogdf::NodeColoringModule::SubsetIterator::m_numElements |
Definition at line 128 of file NodeColoringModule.h.
Definition at line 126 of file NodeColoringModule.h.