graph_analysis
Algorithms.hpp
Go to the documentation of this file.
1 #ifndef GRAPH_ANALYSIS_ALGORITHMS_HPP
2 #define GRAPH_ANALYSIS_ALGORITHMS_HPP
3 
4 #include "SharedPtr.hpp"
5 
6 namespace graph_analysis {
7 
8 class SubGraph;
9 class BaseGraph;
10 
15 {
16 public:
17  virtual ~Algorithms() {}
18 
27  virtual shared_ptr<SubGraph> identifyConnectedComponents(const shared_ptr<BaseGraph>& baseGraph) const { (void) baseGraph; throw std::runtime_error("graph_analysis::Algorithms::identifyConnectedComponents has not been implemented"); }
28 
32  virtual bool isConnected() const { throw std::runtime_error("graph_analysis::Algorithms::isConnected has not been implemented"); }
33 };
34 
35 } // end namespace graph_analysis
36 #endif // GRAPH_ANALYSIS_ALGORITHMS_HPP
graph_analysis::Algorithms::isConnected
virtual bool isConnected() const
Definition: Algorithms.hpp:32
SharedPtr.hpp
graph_analysis::Algorithms::identifyConnectedComponents
virtual shared_ptr< SubGraph > identifyConnectedComponents(const shared_ptr< BaseGraph > &baseGraph) const
Definition: Algorithms.hpp:27
graph_analysis
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
graph_analysis::Algorithms::~Algorithms
virtual ~Algorithms()
Definition: Algorithms.hpp:17
graph_analysis::Algorithms
Interface definition for a collection of standard algorithms.
Definition: Algorithms.hpp:14