All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
graph_algorithms.h
Go to the documentation of this file.
1 #ifndef GRAPH_ALGORITHMS_H_INCLUDED_
2 #define GRAPH_ALGORITHMS_H_INCLUDED_
3 
4 #include "rose.h"
5 
6 namespace risc
7 {
8 
9 // sa = static analysis
10 namespace sa
11 {
12 
13 // ga = graph analysis
14 namespace ga
15 {
16 
17 enum Color {White, Gray, Black};
18 
19 typedef std::pair<SgGraphNode*, Color> ColoredGraphNode;
20 typedef std::vector<ColoredGraphNode> ColoredNodeVector;
21 
22 
23 std::set<SgFunctionSymbol*> dfs(SgFunctionSymbol *root_func_symbol,
24  SgIncidenceDirectedGraph &graph);
25 
27  SgIncidenceDirectedGraph &graph);
28 
29 
30 } // end namesapce dfs
31 
32 } // end namesapce sa
33 
34 } // end namespace risc
35 
36 #endif /* GRAPH_ALGORITHMS_H_INCLUDED_ */
37 
38 /* ex: set softtabstop=2 tabstop=2 shiftwidth=2 expandtab: */
Definition: graph_algorithms.h:17
Color
Definition: graph_algorithms.h:17
std::pair< SgGraphNode *, Color > ColoredGraphNode
Definition: graph_algorithms.h:19
void dfs_visit(ColoredGraphNode &root, ColoredNodeVector &nodes, SgIncidenceDirectedGraph &graph)
Definition: graph_algorithms.cpp:49
Definition: graph_algorithms.h:17
std::set< SgFunctionSymbol * > dfs(SgFunctionSymbol *root_func_symbol, SgIncidenceDirectedGraph &graph)
Definition: graph_algorithms.cpp:4
std::vector< ColoredGraphNode > ColoredNodeVector
Definition: graph_algorithms.h:20
Definition: graph_algorithms.h:17