126#include <type_traits>
149 requires requires {
typename G::Weight; } &&
150 ( ! std::is_same_v< typename G::Weight , std::monostate > )
151struct EdgeLength< G >
153 using type =
typename G::Weight;
221std::pair< std::vector< int > , std::vector< int > >
247 const std::vector< bool > & B );
306template< Graph G ,
class Keep >
358template< Graph G ,
class F >
390std::optional< std::vector< std::size_t > >
401#include "ADS/graph/impl/Paths.tpp"
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...
The GRAPH of chapter 9 and its realizations.
Keep
what an on() that returns it asks: to stay, or to be detached after the event, with no exception
Definition Modification.h:156
typename detail::EdgeLength< G >::type PathLength
the type of the lengths of the paths of
Definition Paths.h:160
std::pair< std::vector< int >, std::vector< int > > multiSourceDistance(const G &g, const std::vector< int > &S)
the distance from the nearest node of , INF if none reaches it, and the parents in the forest of the ...
std::vector< std::uint64_t > countShortestPaths(const G &g, int s)
the number of shortest paths, in edges, from to each node, modulo : 1 for , 0 for the nodes not reac...
void simpleCycles(const G &g, int s, F &&f)
calls on each simple cycle through , its nodes from back to
std::vector< int > longestPathLayering(const G &g)
the edges of a longest path ending at each node of the acyclic graph, 0 on the sources (and on the na...
int setDistance(const G &g, const std::vector< bool > &A, const std::vector< bool > &B)
the fewest edges of a path from a node of to one of , 0 if they meet, INF if there is none
std::optional< std::vector< std::size_t > > refuelingStops(const std::vector< T > &D, T L, T R)
the places in of the fewest stops of a trip from 0 to , a full tank lasting and the stations at ,...
std::vector< PathLength< G > > dagLongestPaths(const G &g, Keep &&keep)
the largest total length of a path leaving each node along the edges with , the empty path included,...
GrB_Type type(void)
the type of GraphBLAS of the numbers T: GrB_BOOL, the integers of 8 to 64 bits with or without sign,...
Definition GraphBLAS.h:128