#include "assert.h"#include "gr/gr.h"#include "gr/set_soset.h"#include "gr/vcg.h"Go to the source code of this file.
Defines | |
| #define | GR_BACKEND_MODEL "grbe_frame_based.so" |
| #define | GR_GRAPH_MODEL "gr_model_Mutex_fb.so" |
| #define | GR_ACTION_MODEL "gr_actions_Mutex_fb.so" |
Functions | |
| static gr_graph_t * | init_graph (void) |
| static void | vcg_dump (const char *filename, gr_graph_t *gr) |
| static void | add_nodes (gr_graph_t *gr, char *type_name, int num) |
| int | main (void) |
|
|
Definition at line 9 of file libgr_demo_simple.c. |
|
|
Definition at line 7 of file libgr_demo_simple.c. Referenced by init_graph(). |
|
|
Definition at line 8 of file libgr_demo_simple.c. Referenced by init_graph(). |
|
||||||||||||||||
|
Bulk add nodes Definition at line 71 of file libgr_demo_simple.c. References gr_add_node(), gr_get_node_type_id(), and gr_id_is_valid. Referenced by main(). |
|
|
Init the GraphEngine Definition at line 14 of file libgr_demo_simple.c. References gr_backend_load_graph_model(), GR_BACKEND_MODEL, gr_backend_new(), gr_backend_new_graph(), gr_domain_get_root(), gr_domain_set_printer(), GR_GRAPH_MODEL, gr_init(), gr_load_backend_model(), GR_ML_ERROR, GR_ML_FATAL, gr_msg_printer_file_new(), gr_msg_printer_set_level_mask(), and gr_set_soset_factory. Referenced by main(). |
|
|
Definition at line 84 of file libgr_demo_simple.c. References add_nodes(), and init_graph(). |
|
||||||||||||
|
Dump the GRS graph as VCG.
Definition at line 43 of file libgr_demo_simple.c. References GR_COLOR_BROWN, GR_COLOR_RED, gr_dump(), gr_dump_color_edge_type(), gr_dump_color_node_type(), gr_dump_delete(), gr_dump_exclude_node_type(), gr_dump_group_incoming(), gr_dump_set_node_infotag(), gr_dump_vcg_new(), gr_get_node_attr_id(), and VCG_ORIENTATION_BOTTOM_TO_TOP. |
1.4.1