|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Functions | |
| template<class GT , class SA > | |
| size_t | degree (const GT &g, typename GT::Node *p, SA &sa) |
| Degree of a node as an Eulerian walk counts it. | |
| template<class GT , class SA > | |
| bool | arcs_are_together (const GT &g, SA &sa) |
| Whether the arcs that sa shows are all in one component. | |
| bool Aleph::eulerian_detail::arcs_are_together | ( | const GT & | g, |
| SA & | sa | ||
| ) |
Whether the arcs that sa shows are all in one component.
Their ends join the components, in either direction, which is what an Eulerian walk needs besides the degrees; the nodes without arcs do not count, and a graph without arcs has them all together. The cookies of the nodes hold a union-find, and are left null.
Definition at line 145 of file eulerian.H.
References Aleph::and, GraphCommon< GT, Node, Arc >::get_src_node(), GraphCommon< GT, Node, Arc >::get_tgt_node(), Aleph::next(), Aleph::Filter_Iterator< Container, It, Show_Item >::next_ne(), NODE_COOKIE, r, GraphCommon< GT, Node, Arc >::reset_cookie_nodes(), and root().
Referenced by Aleph::Test_Eulerian< GT, SN, SA >::analyze_digraph(), and Aleph::Test_Eulerian< GT, SN, SA >::analyze_graph().
| size_t Aleph::eulerian_detail::degree | ( | const GT & | g, |
| typename GT::Node * | p, | ||
| SA & | sa | ||
| ) |
Degree of a node as an Eulerian walk counts it.
The degree of p by the arcs that sa shows: in a graph, a loop, which is once in the list of its node, adds 2; in a digraph, whose lists hold the arcs out, it is the degree out, where a loop adds 1.
Definition at line 129 of file eulerian.H.
References Aleph::and, GraphCommon< GT, Node, Arc >::is_digraph(), and Aleph::Filter_Iterator< Container, It, Show_Item >::next_ne().
Referenced by Aleph::Test_Eulerian< GT, SN, SA >::analyze_digraph(), Aleph::Test_Eulerian< GT, SN, SA >::analyze_graph(), Aleph::Find_Eulerian_Path< GT, SN, SA >::find_start_vertex(), and Aleph::Test_Eulerian< GT, SN, SA >::test_degree_only().