Compute the cardinality of every component in a graph. More...
#include <card.hh>
Public Types | |
| typedef util::array< unsigned > | result |
| Type of the computed value. | |
Public Member Functions | |
| void | added_to_queue (unsigned id) |
| void | final () |
| template<typename G > | |
| void | init (const Graph< G > &g) |
| void | new_component_from_vertex (unsigned id) |
| void | next_component () |
| void | process_vertex (unsigned) |
| bool | to_be_queued (unsigned id) |
| bool | to_be_treated (unsigned id) |
Public Attributes | |
| unsigned | comp |
| util::array< unsigned > | data |
| util::array< bool > | deja_vu_ |
Compute the cardinality of every component in a graph.
Definition at line 61 of file graph/attribute/card.hh.
| typedef util::array<unsigned> mln::graph::attribute::card_t::result |
Type of the computed value.
Definition at line 64 of file graph/attribute/card.hh.
| void mln::graph::attribute::card_t::added_to_queue | ( | unsigned | id | ) | [inline] |
Definition at line 90 of file graph/attribute/card.hh.
| void mln::graph::attribute::card_t::final | ( | ) | [inline] |
Definition at line 99 of file graph/attribute/card.hh.
| void mln::graph::attribute::card_t::init | ( | const Graph< G > & | g | ) | [inline] |
Definition at line 67 of file graph/attribute/card.hh.
References comp, data, deja_vu_, mln::exact(), mln::util::array< T >::fill(), and mln::util::array< T >::resize().
| void mln::graph::attribute::card_t::new_component_from_vertex | ( | unsigned | id | ) | [inline] |
Definition at line 78 of file graph/attribute/card.hh.
References mln::util::array< T >::append(), data, and deja_vu_.
| void mln::graph::attribute::card_t::next_component | ( | ) | [inline] |
Definition at line 96 of file graph/attribute/card.hh.
References comp.
| void mln::graph::attribute::card_t::process_vertex | ( | unsigned | ) | [inline] |
Definition at line 84 of file graph/attribute/card.hh.
| bool mln::graph::attribute::card_t::to_be_queued | ( | unsigned | id | ) | [inline] |
Definition at line 87 of file graph/attribute/card.hh.
References deja_vu_.
| bool mln::graph::attribute::card_t::to_be_treated | ( | unsigned | id | ) | [inline] |
Definition at line 75 of file graph/attribute/card.hh.
References deja_vu_.
| unsigned mln::graph::attribute::card_t::comp |
Definition at line 102 of file graph/attribute/card.hh.
Referenced by added_to_queue(), init(), and next_component().
Definition at line 104 of file graph/attribute/card.hh.
Referenced by added_to_queue(), init(), and new_component_from_vertex().
Definition at line 103 of file graph/attribute/card.hh.
Referenced by added_to_queue(), init(), new_component_from_vertex(), to_be_queued(), and to_be_treated().
1.7.1