|
ADS
Algorithms and Data Structures
|
The algorithms of LEMON on the threads of ADS, beyond the book (see Interoperation with LEMON): More...
#include "ADS/graph/ShortestPaths.h"#include "ADS/interop/lemon/Heaps.h"#include "ADS/interop/lemon/Maps.h"#include "ADS/parallel/Executor.h"#include "ADS/parallel/ParallelSort.h"#include <lemon/bits/traits.h>#include <lemon/core.h>#include <lemon/dijkstra.h>#include <cstddef>#include <type_traits>#include <utility>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | ADS |
| namespace | ADS::lemon_interop |
Functions | |
| template<class H = void, Executor E, class GR, class LM> | |
| std::vector< std::vector< typename LM::Value > > | ADS::lemon_interop::dijkstraFrom (E &ex, const GR &g, const LM &l, const std::vector< typename GR::Node > &S) |
| the distances from each node of \( S \) in the digraph \( g \) of the lengths \( l \), by one run of the Dijkstra of LEMON per source on the threads of \( \mathit{ex} \): the vector of each source, by the ids of the nodes, infinity() for those not reached [see ShortestPaths.h] | |
| template<Executor E, class GR, class CM, class Item = typename CM::Key> | |
| std::vector< std::pair< Item, typename CM::Value > > | ADS::lemon_interop::sortedArcs (E &ex, const GR &g, const CM &c) |
| the pairs ( item , cost ) of the items Item of \( g \), the edges of a graph by default, in the order of the costs of \( c \), sorted on the threads of \( \mathit{ex} \), for lemon::kruskal( g , S , t ) | |
The algorithms of LEMON on the threads of ADS, beyond the book (see Interoperation with LEMON):
The contracts [see Contract.h]: the graph does not change while the runs read it; the lengths are not negative. The functions are defined in this file.