![]() |
Vcsn
2.8
Be Rational
|
Get all states in reverse postorder using depth first search. More...
#include <scc.hh>
Public Types | |
using | state_t = state_t_of< Aut > |
Public Member Functions | |
reverse_postorder_impl (const Aut &aut) | |
std::vector< state_t > & | reverse_post () |
Private Member Functions | |
void | dfs (state_t s) |
Private Attributes | |
Aut | aut_ |
Input automaton. More... | |
std::vector< state_t > | rvp_ |
Revert postorder of dfs. More... | |
std::unordered_set< state_t > | marked_ |
Store the visited states. More... | |
Get all states in reverse postorder using depth first search.
using vcsn::detail::reverse_postorder_impl< Aut >::state_t = state_t_of<Aut> |
|
inline |
Definition at line 59 of file scc.hh.
References vcsn::detail::reverse_postorder_impl< Aut >::dfs(), vcsn::has(), vcsn::detail::reverse_postorder_impl< Aut >::marked_, and vcsn::detail::reverse_postorder_impl< Aut >::rvp_.
|
inlineprivate |
Definition at line 78 of file scc.hh.
References vcsn::detail::reverse_postorder_impl< Aut >::aut_, vcsn::has(), vcsn::detail::reverse_postorder_impl< Aut >::marked_, vcsn::detail::out(), and vcsn::detail::reverse_postorder_impl< Aut >::rvp_.
Referenced by vcsn::detail::scc_impl< Aut, dijkstra_tag >::components(), vcsn::detail::scc_impl< Aut, dijkstra_tag >::dfs(), vcsn::detail::scc_impl< Aut, kosaraju_tag >::dfs(), vcsn::detail::scc_impl< Aut, tarjan_recursive_tag >::dfs(), vcsn::detail::reverse_postorder_impl< Aut >::reverse_postorder_impl(), vcsn::detail::scc_impl< Aut, kosaraju_tag >::scc_impl(), vcsn::detail::scc_impl< Aut, tarjan_iterative_tag >::scc_impl(), and vcsn::detail::scc_impl< Aut, tarjan_recursive_tag >::scc_impl().
|
inline |
Definition at line 72 of file scc.hh.
References vcsn::detail::reverse_postorder_impl< Aut >::rvp_.
Referenced by vcsn::reverse_postorder().
|
private |
Input automaton.
Definition at line 91 of file scc.hh.
Referenced by vcsn::detail::scc_impl< Aut, dijkstra_tag >::components(), vcsn::detail::reverse_postorder_impl< Aut >::dfs(), vcsn::detail::scc_impl< Aut, dijkstra_tag >::dfs(), vcsn::detail::scc_impl< Aut, kosaraju_tag >::dfs(), vcsn::detail::scc_impl< Aut, tarjan_iterative_tag >::dfs(), and vcsn::detail::scc_impl< Aut, tarjan_iterative_tag >::scc_impl().
|
private |
Store the visited states.
Definition at line 95 of file scc.hh.
Referenced by vcsn::detail::reverse_postorder_impl< Aut >::dfs(), vcsn::detail::scc_impl< Aut, kosaraju_tag >::dfs(), vcsn::detail::scc_impl< Aut, tarjan_recursive_tag >::dfs(), vcsn::detail::reverse_postorder_impl< Aut >::reverse_postorder_impl(), vcsn::detail::scc_impl< Aut, kosaraju_tag >::scc_impl(), and vcsn::detail::scc_impl< Aut, tarjan_recursive_tag >::scc_impl().
|
private |
Revert postorder of dfs.
Definition at line 93 of file scc.hh.
Referenced by vcsn::detail::reverse_postorder_impl< Aut >::dfs(), vcsn::detail::reverse_postorder_impl< Aut >::reverse_post(), and vcsn::detail::reverse_postorder_impl< Aut >::reverse_postorder_impl().