Vcsn  2.1
Be Rational
vcsn::detail::scc_kosaraju_impl< Aut > Class Template Reference

Compute the strongly connected components using Kosaraju's algorithm. More...

#include <scc.hh>

Collaboration diagram for vcsn::detail::scc_kosaraju_impl< Aut >:

Public Types

using state_t = state_t_of< Aut >
 
using component_t = detail::component_t< Aut >
 
using components_t = detail::components_t< Aut >
 

Public Member Functions

 scc_kosaraju_impl (const Aut &aut)
 
const components_tcomponents () const
 

Private Member Functions

void dfs (state_t s)
 

Private Attributes

Aut aut_
 Input automaton. More...
 
std::size_t num_ = 0
 The current component number. More...
 
components_t components_
 All components. More...
 
std::unordered_set< state_tmarked_
 

Detailed Description

template<typename Aut>
class vcsn::detail::scc_kosaraju_impl< Aut >

Compute the strongly connected components using Kosaraju's algorithm.

Definition at line 198 of file scc.hh.

Member Typedef Documentation

template<typename Aut >
using vcsn::detail::scc_kosaraju_impl< Aut >::component_t = detail::component_t<Aut>

Definition at line 202 of file scc.hh.

template<typename Aut >
using vcsn::detail::scc_kosaraju_impl< Aut >::components_t = detail::components_t<Aut>

Definition at line 203 of file scc.hh.

template<typename Aut >
using vcsn::detail::scc_kosaraju_impl< Aut >::state_t = state_t_of<Aut>

Definition at line 201 of file scc.hh.

Constructor & Destructor Documentation

template<typename Aut >
vcsn::detail::scc_kosaraju_impl< Aut >::scc_kosaraju_impl ( const Aut &  aut)
inline

Definition at line 205 of file scc.hh.

Member Function Documentation

template<typename Aut >
const components_t& vcsn::detail::scc_kosaraju_impl< Aut >::components ( ) const
inline

Definition at line 222 of file scc.hh.

References vcsn::detail::scc_kosaraju_impl< Aut >::components_.

Referenced by vcsn::strong_components().

template<typename Aut >
void vcsn::detail::scc_kosaraju_impl< Aut >::dfs ( state_t  s)
inlineprivate

Definition at line 228 of file scc.hh.

References vcsn::detail::scc_kosaraju_impl< Aut >::aut_, vcsn::detail::scc_kosaraju_impl< Aut >::components_, vcsn::has(), vcsn::detail::scc_kosaraju_impl< Aut >::marked_, and vcsn::detail::scc_kosaraju_impl< Aut >::num_.

Here is the call graph for this function:

Member Data Documentation

template<typename Aut >
Aut vcsn::detail::scc_kosaraju_impl< Aut >::aut_
private

Input automaton.

Definition at line 245 of file scc.hh.

Referenced by vcsn::detail::scc_kosaraju_impl< Aut >::dfs().

template<typename Aut >
components_t vcsn::detail::scc_kosaraju_impl< Aut >::components_
private
template<typename Aut >
std::unordered_set<state_t> vcsn::detail::scc_kosaraju_impl< Aut >::marked_
private

Definition at line 250 of file scc.hh.

Referenced by vcsn::detail::scc_kosaraju_impl< Aut >::dfs().

template<typename Aut >
std::size_t vcsn::detail::scc_kosaraju_impl< Aut >::num_ = 0
private

The current component number.

Definition at line 247 of file scc.hh.

Referenced by vcsn::detail::scc_kosaraju_impl< Aut >::dfs().


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