Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::DigraphType Concept Reference

A graph type built with the Digraph template. More...

#include <ah-graph-concepts.H>

Concept definition

template<class GT>
static_cast<graph_concepts_detail::graph_t<GT> *>(nullptr)))::value
size_t size_t int32_t value
Definition ca-c-api.h:116
A graph type built with the Digraph template.
std::true_type derives_from_digraph(const volatile Digraph< B > *)
Chosen when a pointer to the graph converts to one to a Digraph<B>, that is, when its type derives fr...

Detailed Description

A graph type built with the Digraph template.

List_Digraph, List_SDigraph, Array_Digraph and the classes derived from them, such as MCF_Graph, keep each arc only in the list of its source, while a graph that is not directed keeps it in the lists of both ends. So the forms that read the arcs into a node from its list, as In_Iterator(p) and in_degree(p), do not compile on these types; the forms that take the graph do.

The concept looks at the type: a graph of an undirected type that says that it is directed (see set_digraph()) is not one. It must be checked where GT is complete, as inside a function.

Template Parameters
GTcandidate graph type; cv-qualifiers and references are ignored.

Definition at line 186 of file ah-graph-concepts.H.