An iterator-based BFS through a Graph. More...
#include <ogdf/basic/pctree/util/FilteringBFS.h>
Public Member Functions | |
FilteringBFS ()=default | |
FilteringBFS (const FilteringBFS ©)=default | |
template<typename Container > | |
FilteringBFS (const Graph &G, Container &nodes, const std::function< bool(adjEntry)> &visit=return_true< adjEntry >, const std::function< bool(node)> &descend_from=return_true< node >) | |
FilteringBFS (const Graph &G, std::initializer_list< node > nodes, const std::function< bool(adjEntry)> &visit=return_true< adjEntry >, const std::function< bool(node)> &descend_from=return_true< node >) | |
FilteringBFS (FilteringBFS &&move) noexcept=default | |
void | append (node n) |
FilteringBFSIterator | begin () |
node | current () |
FilteringBFSIterator | end () |
bool | hasVisited (node n) const |
void | next () |
operator bool () const | |
bool | operator!= (const FilteringBFS &rhs) const |
FilteringBFS & | operator= (const FilteringBFS ©)=default |
FilteringBFS & | operator= (FilteringBFS &&move) noexcept=default |
bool | operator== (const FilteringBFS &rhs) const |
int | pendingCount () const |
void | setDescendFilter (const std::function< bool(node)> &mDescend) |
void | setVisitFilter (const std::function< bool(adjEntry)> &mVisit) |
bool | valid () const |
bool | willDescendFrom (node n) const |
bool | willVisitTarget (adjEntry adj) const |
Static Public Member Functions | |
template<typename T > | |
static bool | return_true (T t) |
Private Attributes | |
std::function< bool(node)> | m_descend |
Queue< node > | m_pending |
std::function< bool(adjEntry)> | m_visit |
NodeArray< bool > | m_visited |
An iterator-based BFS through a Graph.
Allows specifying filters to not visit or descend from certain nodes.
Definition at line 57 of file FilteringBFS.h.
|
explicitdefault |
|
default |
|
defaultnoexcept |
|
inlineexplicit |
Definition at line 75 of file FilteringBFS.h.
|
inlineexplicit |
Definition at line 84 of file FilteringBFS.h.
|
inline |
Definition at line 128 of file FilteringBFS.h.
|
inline |
Definition at line 191 of file FilteringBFS.h.
|
inline |
Definition at line 119 of file FilteringBFS.h.
|
inline |
Definition at line 193 of file FilteringBFS.h.
|
inline |
Definition at line 133 of file FilteringBFS.h.
|
inline |
Definition at line 101 of file FilteringBFS.h.
|
inline |
Definition at line 124 of file FilteringBFS.h.
|
inline |
Definition at line 93 of file FilteringBFS.h.
|
default |
|
defaultnoexcept |
|
inline |
Definition at line 89 of file FilteringBFS.h.
|
inline |
Definition at line 143 of file FilteringBFS.h.
|
inlinestatic |
Definition at line 65 of file FilteringBFS.h.
|
inline |
Definition at line 141 of file FilteringBFS.h.
|
inline |
Definition at line 139 of file FilteringBFS.h.
|
inline |
Definition at line 126 of file FilteringBFS.h.
|
inline |
Definition at line 137 of file FilteringBFS.h.
|
inline |
Definition at line 135 of file FilteringBFS.h.
|
private |
Definition at line 61 of file FilteringBFS.h.
Definition at line 58 of file FilteringBFS.h.
|
private |
Definition at line 60 of file FilteringBFS.h.
|
private |
Definition at line 59 of file FilteringBFS.h.