|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Functor for computing the transposed digraph, filtering arcs. More...
#include <tpl_graph_utils.H>
Public Member Functions | |
| Invert_Digraph (SA __sa) | |
Construct a functor using the arc filter __sa. | |
| GT | operator() (const GT &g) const |
| Compute the transposed graph. | |
Private Attributes | |
| SA | sa |
Functor for computing the transposed digraph, filtering arcs.
Produces the transpose of g, including only arcs that satisfy the filter SA.
Nodes are always preserved (including isolated nodes).
Definition at line 1882 of file tpl_graph_utils.H.
|
inline |
Construct a functor using the arc filter __sa.
Definition at line 1889 of file tpl_graph_utils.H.
|
inline |
Compute the transposed graph.
| [in] | g | Input digraph. |
g. | domain_error | If g is not a digraph. |
| bad_alloc | If there is not enough memory. |
Definition at line 1898 of file tpl_graph_utils.H.
References ah_domain_error_unless, GTArcCommon< ArcInfo >::get_info(), GraphCommon< GT, Node, Arc >::get_node_it(), GraphCommon< GT, Node, Arc >::get_num_nodes(), GraphCommon< GT, Node, Arc >::get_src_node(), GraphCommon< GT, Node, Arc >::get_tgt_node(), GraphCommon< GT, Node, Arc >::is_digraph(), GraphCommon< GT, Node, Arc >::map_arcs(), GraphCommon< GT, Node, Arc >::map_nodes(), Aleph::maps(), Aleph::Filter_Iterator< Container, It, Show_Item >::next_ne(), GraphCommon< GT, Node, Arc >::reset_arcs(), GraphCommon< GT, Node, Arc >::reset_nodes(), and Aleph::Invert_Digraph< GT, SA >::sa.
Definition at line 1884 of file tpl_graph_utils.H.
Referenced by Aleph::Invert_Digraph< GT, SA >::operator()().