|
Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
|
Public Member Functions | |
| Weighted_Graph (const size_t num_nodes, const size_t num_arcs, const unsigned seed) | |
| long | weight (IGT::Arc *a) const |
| std::map< IGT::Node *, long > | distances_from (IGT::Node *s) |
| long | cost_of (const Path< IGT > &path, IGT::Node *s, IGT::Node *t) const |
| long | weight_of (IGT &tree) const |
Public Attributes | |
| IGT | g |
| std::vector< IGT::Node * > | nodes |
| std::vector< long > | weights |
Definition at line 1058 of file test_dijkstra.cc.
|
inline |
Definition at line 1064 of file test_dijkstra.cc.
References g, Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_arc(), Aleph::List_Graph< _Graph_Node, _Graph_Arc >::insert_node(), nodes, num_nodes, rng, seed, weight(), and weights.
|
inline |
Definition at line 1121 of file test_dijkstra.cc.
References Aleph::Path< GT >::for_each_arc(), Aleph::Path< GT >::get_first_node(), Aleph::Path< GT >::get_last_node(), and weight().
Definition at line 1097 of file test_dijkstra.cc.
References Aleph::and, g, GraphCommon< GT, Node, Arc >::get_src_node(), GraphCommon< GT, Node, Arc >::get_tgt_node(), and weight().
|
inline |
Definition at line 1090 of file test_dijkstra.cc.
References GTArcCommon< ArcInfo >::get_info(), and weights.
Referenced by Weighted_Graph(), cost_of(), distances_from(), and weight_of().
|
inline |
Definition at line 1131 of file test_dijkstra.cc.
References weight().
| IGT Weighted_Graph::g |
Definition at line 1060 of file test_dijkstra.cc.
Referenced by Weighted_Graph(), and distances_from().
| std::vector<IGT::Node *> Weighted_Graph::nodes |
Definition at line 1061 of file test_dijkstra.cc.
Referenced by Weighted_Graph().
| std::vector<long> Weighted_Graph::weights |
Definition at line 1062 of file test_dijkstra.cc.
Referenced by Weighted_Graph(), and weight().