ADS
Algorithms and Data Structures
Loading...
Searching...
No Matches
ADS::ShortestPathTree< D > Struct Template Reference

the result: the distances, infinity() if not reachable, the tree of the parents, NIL for \( r \) and the unreachable nodes, the nodes in the order of extraction from \( S \), and whether a negative cycle was found More...

#include <ADS/graph/ShortestPaths.h>

Public attributes

std::vector< D > d
 the distances
std::vector< int > T
 the parent of each node
std::vector< int > order
 the nodes in the order of extraction
bool negativeCycle = false
 whether a negative cycle was found

Detailed description

template<class D>
struct ADS::ShortestPathTree< D >

the result: the distances, infinity() if not reachable, the tree of the parents, NIL for \( r \) and the unreachable nodes, the nodes in the order of extraction from \( S \), and whether a negative cycle was found

Member data documentation

◆ d

template<class D>
std::vector< D > ADS::ShortestPathTree< D >::d

the distances

◆ negativeCycle

template<class D>
bool ADS::ShortestPathTree< D >::negativeCycle = false

whether a negative cycle was found

◆ order

template<class D>
std::vector< int > ADS::ShortestPathTree< D >::order

the nodes in the order of extraction

◆ T

template<class D>
std::vector< int > ADS::ShortestPathTree< D >::T

the parent of each node


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