Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::hamiltonian_detail::Simple_Graph< GT, SA > Struct Template Reference

The simple graph that the arcs that a filter shows give. More...

#include <hamiltonian.H>

Collaboration diagram for Aleph::hamiltonian_detail::Simple_Graph< GT, SA >:
[legend]

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
 

Detailed Description

template<class GT, class SA>
struct Aleph::hamiltonian_detail::Simple_Graph< GT, SA >

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.

Member Typedef Documentation

◆ Node

template<class GT , class SA >
using Aleph::hamiltonian_detail::Simple_Graph< GT, SA >::Node = typename GT::Node

Definition at line 109 of file hamiltonian.H.

Constructor & Destructor Documentation

◆ Simple_Graph()

Member Function Documentation

◆ degree()

◆ in_degree()

◆ joined()

template<class GT , class SA >
bool Aleph::hamiltonian_detail::Simple_Graph< GT, SA >::joined ( Node *  p,
Node *  q 
) const
inline

Member Data Documentation

◆ in

◆ out


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