|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
The simple graph that the arcs that a filter shows give. More...
#include <hamiltonian.H>
Public Types | |
| using | Node = typename GT::Node |
Public Member Functions | |
| Simple_Graph (const GT &g, SA &sa) | |
| size_t | degree (Node *p) const |
| The neighbors of p, or the nodes that it goes to in a digraph. | |
| size_t | in_degree (Node *p) const |
| The nodes that come to p, in a digraph. | |
| bool | joined (Node *p, Node *q) const |
| Whether p and q are joined, or p goes to q in a digraph. | |
Public Attributes | |
| DynMapTree< Node *, DynSetTree< Node * > > | out |
| DynMapTree< Node *, size_t > | in |
The simple graph that the arcs that a filter shows give.
For each node, the nodes that its arcs go to, without itself and each once (either way in a graph, out in a digraph), and in a digraph how many nodes come to each one: the degrees of the theorems of Ore and Dirac, which are on simple graphs. Loops and parallel arcs leave no trace.
Definition at line 107 of file hamiltonian.H.
| using Aleph::hamiltonian_detail::Simple_Graph< GT, SA >::Node = typename GT::Node |
Definition at line 109 of file hamiltonian.H.
|
inline |
Definition at line 114 of file hamiltonian.H.
References Aleph::and, Aleph::DynMapTree< Key, Data, Tree, Compare >::find(), Aleph::hamiltonian_detail::Simple_Graph< GT, SA >::in, Aleph::DynMapTree< Key, Data, Tree, Compare >::insert(), Aleph::Filter_Iterator< Container, It, Show_Item >::next_ne(), and Aleph::hamiltonian_detail::Simple_Graph< GT, SA >::out.
|
inline |
The neighbors of p, or the nodes that it goes to in a digraph.
Definition at line 132 of file hamiltonian.H.
References Aleph::hamiltonian_detail::Simple_Graph< GT, SA >::out.
Referenced by Aleph::Test_Dirac_Condition< GT, SN, SA >::find_min_degree_vertex(), Aleph::Test_Hamiltonian_Sufficiency< GT, SN, SA >::test_digraph(), Aleph::Test_Dirac_Condition< GT, SN, SA >::test_digraph(), Aleph::Test_Hamiltonian_Sufficiency< GT, SN, SA >::test_graph(), and Aleph::Test_Dirac_Condition< GT, SN, SA >::test_graph().
|
inline |
The nodes that come to p, in a digraph.
Definition at line 135 of file hamiltonian.H.
References Aleph::DynMapTree< Key, Data, Tree, Compare >::find(), and Aleph::hamiltonian_detail::Simple_Graph< GT, SA >::in.
Referenced by Aleph::Test_Dirac_Condition< GT, SN, SA >::find_min_degree_vertex(), Aleph::Test_Hamiltonian_Sufficiency< GT, SN, SA >::test_digraph(), and Aleph::Test_Dirac_Condition< GT, SN, SA >::test_digraph().
|
inline |
Whether p and q are joined, or p goes to q in a digraph.
Definition at line 138 of file hamiltonian.H.
References Aleph::hamiltonian_detail::Simple_Graph< GT, SA >::out.
Referenced by Aleph::Test_Hamiltonian_Sufficiency< GT, SN, SA >::test_digraph(), and Aleph::Test_Hamiltonian_Sufficiency< GT, SN, SA >::test_graph().
| DynMapTree<Node *, size_t> Aleph::hamiltonian_detail::Simple_Graph< GT, SA >::in |
Definition at line 112 of file hamiltonian.H.
Referenced by Aleph::hamiltonian_detail::Simple_Graph< GT, SA >::Simple_Graph(), and Aleph::hamiltonian_detail::Simple_Graph< GT, SA >::in_degree().
| DynMapTree<Node *, DynSetTree<Node *> > Aleph::hamiltonian_detail::Simple_Graph< GT, SA >::out |
Definition at line 111 of file hamiltonian.H.
Referenced by Aleph::hamiltonian_detail::Simple_Graph< GT, SA >::Simple_Graph(), Aleph::hamiltonian_detail::Simple_Graph< GT, SA >::degree(), and Aleph::hamiltonian_detail::Simple_Graph< GT, SA >::joined().