![]() |
CMR
1.3.0
|
#include <bipartite_graph_bfs.hpp>
Public Types | |
| typedef size_t | index_type |
Public Member Functions | |
| bipartite_graph_dimensions (size_t height, size_t width) | |
| size_t | height () const |
| size_t | width () const |
| size_t | size () const |
| bool | is_row (index_type index) const |
| bool | is_column (index_type index) const |
| size_t | index_to_row (index_type index) const |
| size_t | index_to_column (index_type index) const |
| index_type | row_to_index (size_t row) const |
| index_type | column_to_index (size_t column) const |
| std::pair< size_t, size_t > | indexes_to_coordinates (index_type first, index_type second) const |
A helper struct for breadth first search on bipartite graphs to map row- and column-indices into on index-range.
| typedef size_t tu::bipartite_graph_dimensions::index_type |
|
inline |
Constructs the helper object with the given number of rows and columns.
| height | Number of rows |
| width | Number of columns |
|
inline |
| column | A given column-index |
|
inline |
|
inline |
| index | A given node-index which indexes a column |
|
inline |
| index | A given node-index which indexes a row |
|
inline |
Maps two node-indices at once and puts the resulting row and column and indices in this fixed ording into the resulting pair.
| first | A first node-index |
| second | A second node-index |
|
inline |
| index | A given node-index |
|
inline |
| index | A given node-index |
|
inline |
| row | A given row-index |
|
inline |
|
inline |