Go to the source code of this file.
|
template<AllowedVertType vert_t, AllowedWeightType weight_t> |
vert_t | EndVertFromTuple (const std::tuple< vert_t, vert_t, weight_t > &edge) |
|
template<AllowedVertType vert_t, AllowedWeightType weight_t> |
std::ostream & | operator<< (std::ostream &os, const Graph< vert_t, weight_t > &graph) |
|
template<AllowedVertType vert_t, AllowedWeightType weight_t> |
vert_t | StartVertFromTuple (const std::tuple< vert_t, vert_t, weight_t > &edge) |
|
template<AllowedVertType vert_t, AllowedWeightType weight_t> |
weight_t | WeightFromTuple (const std::tuple< vert_t, vert_t, weight_t > &edge) |
|
◆ EndVertFromTuple()
vert_t EndVertFromTuple |
( |
const std::tuple< vert_t, vert_t, weight_t > & | edge | ) |
|
|
inline |
24 {
25 return std::get<1>(edge);
26}
◆ operator<<()
std::ostream & operator<< |
( |
std::ostream & | os, |
|
|
const Graph< vert_t, weight_t > & | graph ) |
|
inline |
864 {
865 os << "Edges:\n ";
867
868 os << "\n";
869
870 os << "Vertices:\n ";
872 return os;
873}
std::ostream & PrintEdges(std::ostream &os=std::cout) const
Выводит в поток список ребер.
Definition graph.hpp:362
std::ostream & PrintVerts(std::ostream &os=std::cout) const
Выводит в поток список вершин.
Definition graph.hpp:350
◆ StartVertFromTuple()
vert_t StartVertFromTuple |
( |
const std::tuple< vert_t, vert_t, weight_t > & | edge | ) |
|
|
inline |
18 {
19 return std::get<0>(edge);
20}
◆ WeightFromTuple()
weight_t WeightFromTuple |
( |
const std::tuple< vert_t, vert_t, weight_t > & | edge | ) |
|
|
inline |
30 {
31 return std::get<2>(edge);
32}