Class NotConnectedGraph

Inheritance Relationships

Base Type

  • public std::exception

Class Documentation

class NotConnectedGraph : public std::exception

Custom exception class that passes information in case an unconnected graph is passed to a Dijkstra instance.

Public Functions

inline explicit NotConnectedGraph(const std::set<mrpt::graphs::TNodeID> &unconnected_nodeIDs, std::string err)
inline const char *what()
~NotConnectedGraph() noexcept override = default
inline 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.