#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "gr.h"
#include "hash_map.h"
Go to the source code of this file.
Definition in file dump.c.
|
|
Definition at line 39 of file dump.c. Referenced by gr_dump_create_subgraph(), gr_dump_delete(), gr_dump_edge(), gr_dump_finish_subgraph(), and gr_dump_node(). |
|
|
|
|
||||||||||||||||
|
Colors a edge type (and all non-recolored sub-types) with a given color.
Definition at line 228 of file dump.c. References gr_kind_id, gr_kind_integer, gr_map_put(), gr_value_init, gr_value_set_id(), and gr_value_set_integer(). Referenced by vcg_dump(). |
|
||||||||||||||||
|
Colors a node type (and all non-recolored sub-types) with a given color.
Definition at line 210 of file dump.c. References gr_kind_id, gr_kind_integer, gr_map_put(), gr_value_init, gr_value_set_id(), and gr_value_set_integer(). Referenced by vcg_dump(). |
|
|
Creates a generic dumper object. Should not be called by user. Definition at line 59 of file dump.c. References _gr_dump_t::colored_edges, _gr_dump_t::colored_nodes, _gr_dump_t::exclude_nodes, gr_kind_id, gr_map_hash_factory(), gr_set_new(), _gr_dump_t::group_types, and _gr_dump_t::info_tag. Referenced by gr_dump_dpref_new(), gr_dump_graphml_new(), and gr_dump_vcg_new(). |
|
||||||||||||||||||||||||||||
|
Creates a subgraph from a node.
Definition at line 129 of file dump.c. References ASSERT_DUMP, and ASSERT_MODEL. Referenced by dpref_delete(), and dump_groups(). |
|
|
Delete a graph dumper. This deallocates all memory, closes all files, etc.
Definition at line 75 of file dump.c. References ASSERT_DUMP, ASSERT_MODEL, _gr_dump_model_t::del, gr_map_delete(), gr_set_delete(), _gr_dump_t::model, and _gr_id_entry_t::next. Referenced by dpref_delete(), gr_dump_dpref_new(), gr_dump_graphml_new(), gr_dump_vcg_new(), vcg_dump(), and vcg_dump_match(). |
|
||||||||||||||||||||||||||||||||
|
Dump an edge.
Definition at line 108 of file dump.c. References ASSERT_DUMP, and ASSERT_MODEL. Referenced by dpref_delete(), dump_edges_from_node(), gr_dump_edge_def(), and gr_dump_match(). |
|
||||||||||||||||||||||||
|
Dump an edge with default color and line style.
Definition at line 123 of file dump.c. References colors, edge_color, gr_dump_edge(), GR_DUMP_INDEX_NORMAL, and GR_LINE_DEFAULT. |
|
||||||||||||
|
Removes a node type (and all sub-types) from the dump. This also will remove all incoming and outgoing edges from the dump. Definition at line 172 of file dump.c. References gr_kind_id, gr_set_add(), gr_value_init, and gr_value_set_id(). Referenced by vcg_dump(). |
|
|
Finishes a subgraph.
Definition at line 138 of file dump.c. References ASSERT_DUMP, and ASSERT_MODEL. Referenced by dump_groups(), and finish_subgraphs(). |
|
|
Returns the color of a node for a given index.
Definition at line 153 of file dump.c. References colors, GR_DUMP_INDEX_MAX, GR_DUMP_INDEX_NORMAL, and GR_RANGE_CHECK. Referenced by dump_edges_from_node(), and gr_get_def_edge_color(). |
|
|
Returns the color of a node for a given index.
Definition at line 146 of file dump.c. References colors, GR_DUMP_INDEX_MAX, GR_DUMP_INDEX_NORMAL, and GR_RANGE_CHECK. Referenced by dump_groups(), dump_nodes(), gr_dump_match(), and gr_get_def_node_color(). |
|
||||||||||||
|
Creates a subgraph from a node type by grouping all incomings Definition at line 246 of file dump.c. References _gr_id_entry_t::id, and _gr_id_entry_t::next. Referenced by vcg_dump(). |
|
||||||||||||||||||||||||||||
|
Dump a node.
Definition at line 99 of file dump.c. References ASSERT_DUMP, and ASSERT_MODEL. Referenced by dpref_delete(), dump_nodes(), gr_dump_match(), and gr_dump_node_def(). |
|
||||||||||||||||||||
|
Dump a node with default color.
Definition at line 118 of file dump.c. References colors, GR_DUMP_INDEX_NORMAL, gr_dump_node(), and node_color. |
|
||||||||||||||||
|
Returns the color of a node for a given index.
Definition at line 160 of file dump.c. References colors, edge_color, GR_DUMP_INDEX_MAX, GR_DUMP_INDEX_NORMAL, GR_RANGE_CHECK, and node_color. |
|
||||||||||||||||
|
Definition at line 189 of file dump.c. References gr_id_is_valid, gr_kind_id, gr_map_put(), gr_value_init, and gr_value_set_id(). Referenced by vcg_dump(). |
|
|
Lookup table for colors. Referenced by gr_dump_edge_def(), gr_dump_get_edge_color(), gr_dump_get_node_color(), gr_dump_node_def(), and gr_dump_set_colors(). |
|
|
color for edges Definition at line 48 of file dump.c. Referenced by gr_dump_edge_def(), and gr_dump_set_colors(). |
|
|
color for nodes Definition at line 47 of file dump.c. Referenced by gr_dump_node_def(), and gr_dump_set_colors(). |
1.4.1