pair: class; QPanda::ShortestDistanceByBFS
Calculates the distance between two vertices by applying BFS. More...<details-class_q_panda_1_1_shortest_distance_by_b_f_s>
cpp
#include <ShortestDistanceByBFS.h>
class ShortestDistanceByBFS { public: // typedefs
typedef ShortestDistanceByBFS*
Ref<doxid-class_q_panda_1_1_shortest_distance_by_b_f_s_1ae546ef3cc762746f81743e9895a53c01>
; typedef std::shared_ptr<ShortestDistanceByBFS>sRef<doxid-class_q_panda_1_1_shortest_distance_by_b_f_s_1ad6f76b890260c9db741f923afd7ae03a>
; typedef std::unique_ptr<ShortestDistanceByBFS>uRef<doxid-class_q_panda_1_1_shortest_distance_by_b_f_s_1a9e5bb3d14b051739bb8ffba65c12693f>
; typedef std::vector<uint32_t>VecUInt32<doxid-class_q_panda_1_1_shortest_distance_by_b_f_s_1ae4e7bd2b5e88741904ac8e411221d540>
; typedef std::vector<VecUInt32<doxid-class_q_panda_1_1_shortest_distance_by_b_f_s_1ae4e7bd2b5e88741904ac8e411221d540>
>MatrixUInt32<doxid-class_q_panda_1_1_shortest_distance_by_b_f_s_1a36654c2a04085502652b0fa36fbd4266>
;// methods
void
init<doxid-class_q_panda_1_1_shortest_distance_by_b_f_s_1af90b91474df0b13c6ac6b9f34d2daec3>
(Graph::Ref<doxid-class_q_panda_1_1_graph_1ac91477f35144fe2bbf3e5ec898bd96e3>
graph);
- uint32_t
get<doxid-class_q_panda_1_1_shortest_distance_by_b_f_s_1abbc8c5a8f2b01f466b1e95a31fefa31f>
(uint32_t u, uint32_t v );
static
uRef<doxid-class_q_panda_1_1_shortest_distance_by_b_f_s_1a9e5bb3d14b051739bb8ffba65c12693f>
create<doxid-class_q_panda_1_1_shortest_distance_by_b_f_s_1a9a0ee7f393c0ad5c02ec9c71f77fb507>
();
};
Calculates the distance between two vertices by applying BFS.
pair: function; create
cpp
static uRef<doxid-class_q_panda_1_1_shortest_distance_by_b_f_s_1a9e5bb3d14b051739bb8ffba65c12693f>
create()
Instantiate one object of this type.