.. index:: pair: class; QPanda::ShortestDistanceByBFS .. _doxid-class_q_panda_1_1_shortest_distance_by_b_f_s: class QPanda::ShortestDistanceByBFS =================================== .. toctree:: :hidden: Overview ~~~~~~~~ Calculates the distance between two vertices by applying BFS. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class ShortestDistanceByBFS { public: // typedefs typedef ShortestDistanceByBFS* :target:`Ref`; typedef std::shared_ptr :target:`sRef`; typedef std::unique_ptr :target:`uRef`; typedef std::vector :target:`VecUInt32`; typedef std::vector<:ref:`VecUInt32`> :target:`MatrixUInt32`; // methods void :target:`init`(:ref:`Graph::Ref` graph); uint32_t :target:`get`( uint32_t u, uint32_t v ); static :ref:`uRef` :ref:`create`(); }; .. _details-class_q_panda_1_1_shortest_distance_by_b_f_s: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Calculates the distance between two vertices by applying BFS. Methods ------- .. index:: pair: function; create .. _doxid-class_q_panda_1_1_shortest_distance_by_b_f_s_1a9a0ee7f393c0ad5c02ec9c71f77fb507: .. ref-code-block:: cpp :class: doxyrest-title-code-block static :ref:`uRef` create() Instantiate one object of this type.