class mrpt::graphs::detail::NotConnectedGraph¶
Custom exception class that passes information in case an unconnected graph is passed to a Dijkstra instance.
#include <mrpt/graphs/dijkstra.h> class NotConnectedGraph: public std::exception { public: // construction NotConnectedGraph( const std::set<mrpt::graphs::TNodeID>& unconnected_nodeIDs, std::string err ); // methods const char* what(); void getUnconnectedNodeIDs(std::set<mrpt::graphs::TNodeID>* set_nodeIDs) const; };
Methods¶
void getUnconnectedNodeIDs(std::set<mrpt::graphs::TNodeID>* set_nodeIDs) const
Fill set with the nodeIDs Dijkstra algorithm could not reach starting from the root node.