109#ifndef __ADS_Properties
110 #define __ADS_Properties
313 requires requires(
const G g ,
int u ,
int v )
315 { g.hasEdge( u , v ) } -> std::convertible_to< bool >;
354#include "ADS/graph/impl/Properties.tpp"
The binary TREE of the book: an ordered tree where each node has at most two children,...
The contracts of ADS: the preconditions, the postconditions and the invariants of the operations,...
The visits of a GRAPH of section 9.5 and their applications, each in time on lists or vectors of adj...
a binary tree with pointers to the parent and to the two children
Definition BinaryTree.h:104
The GRAPH of chapter 9 and its realizations.
std::optional< std::vector< int > > twoColoring(const Adjacency &G)
the side, 0 or 1, of each node of , the ends of each edge apart, or nothing if has an odd cycle; the...
std::vector< int > treeVertexCover(const G &g)
the nodes of a minimum vertex cover of the forest, in increasing order
std::int64_t countTriangles(const G &g)
the triangles of the unoriented graph
int diameter(const G &g)
the largest distance in edges between two nodes
int universalSink(const std::vector< std::vector< T > > &A)
the node with an edge from every other one and no edge out, NIL if there is none, from the matrix of ...
int treeDiameter(const G &g)
the edges of a longest path of the free tree
bool isTree(const G &g)
whether the unoriented graph is a free tree, connected and with edges
std::optional< std::vector< int > > uniqueTopologicalOrder(const G &g)
the topological order of the oriented graph if it is the only one, nothing if it has a cycle or more ...