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

A small multigraph: its nodes are 0 . More...

#include <graph_harness.H>

Collaboration diagram for graph_harness::Spec:
[legend]

Public Member Functions

size_t num_arcs () const noexcept
 
bool has_loop () const noexcept
 
std::string str () const
 The spec as text, ready to be written back as a test case.
 

Public Attributes

int n = 0
 
std::vector< std::array< int, 2 > > arcs
 
std::vector< long long > w
 

Detailed Description

A small multigraph: its nodes are 0 .

. n - 1, and arcs[i] is the pair (source, target) of the i-th arc, in the order of insertion. w[i], if given, is the weight of the i-th arc.

Definition at line 110 of file graph_harness.H.

Member Function Documentation

◆ has_loop()

bool graph_harness::Spec::has_loop ( ) const
inlinenoexcept

Definition at line 118 of file graph_harness.H.

References arcs.

Referenced by TYPED_TEST().

◆ num_arcs()

◆ str()

std::string graph_harness::Spec::str ( ) const
inline

The spec as text, ready to be written back as a test case.

Definition at line 127 of file graph_harness.H.

References arcs, n, and w.

Referenced by graph_harness::Check::fail().

Member Data Documentation

◆ arcs

◆ n

int graph_harness::Spec::n = 0

Definition at line 112 of file graph_harness.H.

Referenced by graph_harness::Built< GT >::Built(), graph_oracles::closure(), graph_oracles::component_of(), graph_oracles::components(), graph_oracles::cut_nodes(), graph_oracles::dominance_frontiers(), graph_oracles::dominators(), graph_oracles::euler_class(), graph_harness::for_each_simple_graph(), graph_harness::for_each_spec(), graph_oracles::has_cycle(), graph_oracles::hops(), graph_oracles::immediate_dominators(), graph_oracles::is_bipartite(), graph_oracles::is_dag(), graph_oracles::is_matching(), graph_oracles::is_topological_order(), graph_oracles::kahn_ranks(), graph_oracles::max_flow(), graph_oracles::max_matching(), graph_oracles::min_spanning_forest_weight(), graph_harness::random_spec(), graph_oracles::scc_partition(), graph_oracles::shortest_distances(), str(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST(), TEST_F(), TEST_F(), TEST_F(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), TYPED_TEST(), and graph_oracles::without().

◆ w


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