ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::lemon_interop Namespace Reference

Classes

struct  CmpKey
 a priority of LEMON as a key of ADS, ordered by the comparator CMP More...
class  DaryHeap
 an IndexedDaryHeap of ADS as a heap of LEMON, on the cross-reference map IM of the caller More...
class  DenseMap
 a ReferenceMap of LEMON by the ids of the items of a graph, on an array of its own, not attached to the notifier of the graph More...
struct  Ends
 the ends of an arc, the key of its events More...
class  GraphView
 a digraph of LEMON and a length map as a GRAPH of ADS, with no copy, the names of the nodes their ids More...
class  IndexMap
 a ReadWriteMap of LEMON over a structure of ADS indexed by the ids of the items of a graph, ObservableArray or Fenwick among them More...
class  LemonMirror
 a lemon::ListDigraph and its weights kept in step with a graph of ADS, as an observer of its ObservedGraph More...
class  LemonTap
 the alteration notifier of LEMON for the items Item of GR told as events of ADS, through Policy More...
class  MinCostFlowObserver
 a minimum cost flow of a digraph of LEMON by the algorithm A, kept up to date as an observer of the maps of its costs, upper bounds and supplies, and of the taps of its arcs and nodes More...
class  MonotoneHeap
 a monotone queue of ADS without decrease-key, Q either DialQueue< int , K > or RadixHeap< int , K >, as a heap of LEMON by the lazy deletion More...
class  NetworkSimplexAssignment
 an engine of Assignment on the NetworkSimplex of LEMON, warm after changes of finite costs More...
class  ObservedMap
 a map of LEMON whose writes are told as Changed< A , int , V >, the id of the item its handle More...
class  PreflowEngine
 the engine of MaxFlowObserver on the Preflow of LEMON, with its warm start from the flow of the network More...
class  StaticDigraphBase
 the base of lemon::DigraphExtender on a StaticGraph< W , L >: the arcs are the places of its compressed rows More...
class  StaticDigraphView
 a StaticGraph< W , L > of ADS as a digraph of LEMON, with no copy of its rows More...

Functions

template<class GR, class LM>
StaticGraph< typename LM::Value > toStatic (const GR &g, const LM &l)
 the copy of the digraph \( g \) of LEMON with the lengths \( l \) into a StaticGraph of ADS, the nodes by their ids and the loops left out, in \( \Theta( n + m ) \) time
template<class H = void, Executor E, class GR, class LM>
std::vector< std::vector< typename LM::Value > > 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 > > 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 )