1 #ifndef GRAPH_ANALYSIS_ALGORITHMS_VISITOR_HPP 2 #define GRAPH_ANALYSIS_ALGORITHMS_VISITOR_HPP 4 #include <unordered_map> 7 #define GA_ALGO_NI(X) throw std::runtime_error("graph_analysis::algorithms::Visitor: " X " not implemented"); 10 namespace algorithms {
20 typedef shared_ptr<Visitor>
Ptr;
92 std::unordered_map<Vertex::Ptr, Status> mVertexStatus;
93 std::unordered_map<Edge::Ptr, Status> mEdgeStatus;
98 #endif // GRAPH_ANALYSIS_ALGORITHMS_DFS_VISITOR_HPP virtual void discoverVertex(Vertex::Ptr &vertex)
Definition: Visitor.hpp:45
virtual void treeEdge(Edge::Ptr &edge)
Definition: Visitor.hpp:66
virtual void startVertex(Vertex::Ptr &vertex)
Definition: Visitor.hpp:40
virtual void edgeMinimized(Edge::Ptr &edge)
Definition: Visitor.hpp:87
Definition: Visitor.hpp:22
virtual void examineEdge(Edge::Ptr &edge)
Definition: Visitor.hpp:61
virtual void edgeNotMinimized(Edge::Ptr &edge)
Definition: Visitor.hpp:88
void setStatus(const Vertex::Ptr &vertex, Status status)
Definition: Visitor.hpp:26
virtual void cycleEdge(Edge::Ptr &edge)
Definition: Visitor.hpp:71
virtual void forwardOrCrossEdge(Edge::Ptr &edge)
Definition: Visitor.hpp:77
shared_ptr< Edge > Ptr
Definition: Edge.hpp:21
virtual void edgeRelaxed(Edge::Ptr &edge)
Definition: Visitor.hpp:85
virtual void edgeNotRelaxed(Edge::Ptr &edge)
Definition: Visitor.hpp:86
virtual void initializeVertex(Vertex::Ptr &vertex)
Definition: Visitor.hpp:35
virtual void backEdge(Edge::Ptr &edge)
Definition: Visitor.hpp:83
Main namespace of the graph analysis library.
Definition: BFS.cpp:3
#define GA_ALGO_NI(X)
Definition: Visitor.hpp:7
shared_ptr< Vertex > Ptr
Definition: Vertex.hpp:22
Status
Definition: Visitor.hpp:22
shared_ptr< Visitor > Ptr
Definition: Visitor.hpp:20
Definition: Visitor.hpp:17
virtual ~Visitor()
Definition: Visitor.hpp:24
virtual void finishVertex(Vertex::Ptr &vertex)
Definition: Visitor.hpp:50
Definition: Visitor.hpp:22
virtual void leafVertex(Vertex::Ptr &vertex)
Definition: Visitor.hpp:55
Status getStatus(const Vertex::Ptr &vertex) const
Definition: Visitor.cpp:6
Definition: Visitor.hpp:22
void setStatus(const Edge::Ptr &edge, Status status)
Definition: Visitor.hpp:27