Last change
on this file since 1738 was
1679,
checked in by yushan, 5 years ago
|
MARK: Dynamic workflow graph developement. Branch up to date with trunk @1676. Using vis.js
|
File size:
759 bytes
|
Rev | Line | |
---|
[1668] | 1 | #ifndef __GRAPHVIZ_HPP__ |
---|
| 2 | #define __GRAPHVIZ_HPP__ |
---|
| 3 | |
---|
| 4 | #include <algorithm> |
---|
| 5 | #include <boost/utility.hpp> |
---|
| 6 | #include <boost/graph/adjacency_list.hpp> |
---|
| 7 | #include <boost/graph/graphviz.hpp> |
---|
| 8 | |
---|
| 9 | namespace xios |
---|
| 10 | { |
---|
| 11 | |
---|
| 12 | class CGraphviz |
---|
| 13 | { |
---|
| 14 | |
---|
| 15 | public: |
---|
| 16 | |
---|
| 17 | CGraphviz(); |
---|
[1679] | 18 | static void buildWorkflowGraphDot(); |
---|
| 19 | static void buildWorkflowGraphVisjs_with_info(); |
---|
[1669] | 20 | static void showStaticWorkflowGraph(); |
---|
[1668] | 21 | |
---|
| 22 | private: |
---|
| 23 | template <class Graph> struct exercise_vertex; |
---|
| 24 | |
---|
| 25 | }; // class CGraphviz |
---|
| 26 | |
---|
| 27 | template <class Graph> struct CGraphviz::exercise_vertex { |
---|
| 28 | exercise_vertex(Graph& g_) : g(g_) { } |
---|
| 29 | typedef typename boost::graph_traits<Graph>::vertex_descriptor Vertex; |
---|
| 30 | void operator()(const Vertex& v) const { } Graph& g; |
---|
| 31 | }; |
---|
| 32 | |
---|
| 33 | } // namespace xios |
---|
| 34 | |
---|
| 35 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.