Graphviz 13.0.0~dev.20250523.0001
|
#include "gv_channel.h"
#include <cstdlib>
#include <cstring>
#include <gvc/gvc.h>
#include <string>
#include <util/alloc.h>
Go to the source code of this file.
Data Structures | |
struct | BA |
Macros | |
#define | agfindattr(x, s) agattrsym(x, s) |
#define | agraphattr(g, n, s) agattr_text(g, AGRAPH, n, s) |
Variables | |
static char | emptystring [] = {'\0'} |
static GVC_t * | gvc |
Agraph_t * digraph | ( | char * | name | ) |
Definition at line 99 of file gv.cpp.
References agraphof(), and edge.
Definition at line 107 of file gv.cpp.
References agraphof(), and edge.
Definition at line 102 of file gv.cpp.
References agraphof(), and edge.
Definition at line 279 of file gv.cpp.
References agfindattr.
Definition at line 273 of file gv.cpp.
References agfindattr.
Definition at line 267 of file gv.cpp.
References agfindattr.
Definition at line 259 of file gv.cpp.
References agfindedge, AGRAPH, agraphof(), and AGTYPE.
Definition at line 570 of file gv.cpp.
References AGEDGE, agnxtattr(), agraphof(), and agtail.
Definition at line 556 of file gv.cpp.
References AGNODE, agnxtattr(), and agraphof().
Definition at line 542 of file gv.cpp.
References agnxtattr(), AGRAPH, and agroot().
Definition at line 449 of file gv.cpp.
References agfstedge(), and agraphof().
Definition at line 409 of file gv.cpp.
References firstout().
Definition at line 425 of file gv.cpp.
References agfstout(), aghead, and agraphof().
Definition at line 482 of file gv.cpp.
References agfstin(), and agraphof().
Definition at line 461 of file gv.cpp.
References agfstin(), and agfstnode().
Definition at line 518 of file gv.cpp.
References agfstnode().
Definition at line 413 of file gv.cpp.
References agfstout(), and agraphof().
Definition at line 384 of file gv.cpp.
References agfstnode(), agfstout(), and agnxtnode().
Referenced by firstedge().
Definition at line 367 of file gv.cpp.
References agfstsubg().
Definition at line 380 of file gv.cpp.
References Agraph_s::parent.
Definition at line 494 of file gv.cpp.
References agfstin(), agraphof(), and agtail.
Definition at line 205 of file gv.cpp.
References AGRAPH, AGTYPE, and myagxget().
char * getv | ( | Agedge_t * | e, |
char * | attr | ||
) |
Definition at line 212 of file gv.cpp.
References agattr_text(), AGEDGE, AGRAPH, agraphof(), agtail, AGTYPE, and myagxget().
Definition at line 162 of file gv.cpp.
References AGRAPH, AGTYPE, and myagxget().
char * getv | ( | Agnode_t * | n, |
char * | attr | ||
) |
Definition at line 169 of file gv.cpp.
References agattr_text(), AGNODE, AGRAPH, agraphof(), agroot(), AGTYPE, and myagxget().
Definition at line 129 of file gv.cpp.
References myagxget().
char * getv | ( | Agraph_t * | g, |
char * | attr | ||
) |
Definition at line 130 of file gv.cpp.
References agfindattr, agroot(), and myagxget().
Agraph_t * graph | ( | char * | name | ) |
Definition at line 30 of file gv.cpp.
References agopen(), Agundirected, gv_init(), and gvc.
Referenced by add_edge(), add_graph_to_viewport(), add_graph_to_viewport_from_file(), agsafeset(), bfs(), chkBoundBox(), circuitModel(), closest_pairs2graph(), coarsen_match(), common_neighbors(), compute_apsp(), compute_apsp_artificial_weights(), compute_apsp_artificial_weights_packed(), compute_apsp_dijkstra(), compute_apsp_packed(), compute_apsp_simple(), compute_densities(), compute_new_weights(), compute_weighted_apsp_packed(), constructSierpinski(), constructTetrix(), cpExGraph(), cpGraph(), create_hierarchy(), dijkstra(), dijkstra_f(), dijkstra_sgd(), dist3(), dist_from_foci(), embed_graph(), empty_neighbors_vec(), empty_neighbors_vec(), extract_active_logical_coords(), extract_adjacency(), fill_neighbors_vec(), fill_neighbors_vec_unweighted(), fill_neighbors_vec_unweighted(), findClosestActiveNode(), free_adjacency(), freeGraph(), freeGraphData(), improve_contiguity(), init_active_level(), main(), make_coarse_ex_graph(), make_coarse_graph(), make_map_from_rectangle_groups(), make_map_internal(), makeGraph(), makeGraphData(), makeHier(), makeInfo(), makeMap(), makeSierpinski(), makeTetrix(), mapFromGraph(), maxmatch(), mdsModel(), mkGraph(), mkGraph(), my_init_graph(), prepare_topological_fisheye(), refreshViewport(), remove_edge(), rescale_layout_polar(), rescale_layout_polarFocus(), restore_old_weights(), save_graph_with_file_name(), set_active_levels(), set_active_physical_coords(), sgd(), sparse_stress_subspace_majorization_kD(), stress_majorization_kD_mkernel(), unweighted_common_fraction(), and update_graph_params().
Definition at line 318 of file gv.cpp.
References AGRAPH, agraphof(), and AGTYPE.
Definition at line 303 of file gv.cpp.
References agroot(), and Agraph_s::root.
|
static |
Definition at line 25 of file gv.cpp.
References gvc, gvContextPlugins(), and lt_preloaded_symbols.
Referenced by digraph(), graph(), graph(), read(), read(), readstring(), strictdigraph(), and strictgraph().
bool layout | ( | Agraph_t * | g, |
const char * | engine | ||
) |
Definition at line 615 of file gv.cpp.
References engine, err, gvc, gvFreeLayout(), and gvLayout().
|
static |
Definition at line 117 of file gv.cpp.
References aghtmlstr(), agxget(), emptystring, gv_strdup(), and Agsym_s::name.
Referenced by getv(), getv(), getv(), getv(), getv(), and getv().
|
static |
Definition at line 136 of file gv.cpp.
References agraphof(), agstrdup_html(), agxset(), len(), and Agsym_s::name.
Referenced by setv(), setv(), setv(), setv(), setv(), and setv().
char * nameof | ( | Agnode_t * | n | ) |
Definition at line 348 of file gv.cpp.
References agnameof(), AGRAPH, and AGTYPE.
char * nameof | ( | Agraph_t * | g | ) |
Definition at line 343 of file gv.cpp.
References agnameof().
char * nameof | ( | Agsym_t * | a | ) |
Definition at line 355 of file gv.cpp.
References Agsym_s::name.
Definition at line 577 of file gv.cpp.
References AGEDGE, agnxtattr(), agraphof(), and agtail.
Definition at line 563 of file gv.cpp.
References AGNODE, agnxtattr(), and agraphof().
Definition at line 549 of file gv.cpp.
References agnxtattr(), AGRAPH, and agroot().
Definition at line 455 of file gv.cpp.
References agnxtedge(), and agraphof().
Definition at line 434 of file gv.cpp.
References agfindedge, aghead, AGMKOUT, agnxtout(), and agraphof().
Definition at line 488 of file gv.cpp.
References agnxtin(), and agraphof().
Definition at line 524 of file gv.cpp.
References agnxtnode().
Definition at line 419 of file gv.cpp.
References agnxtout(), and agraphof().
Definition at line 395 of file gv.cpp.
References agfstout(), agnxtnode(), agnxtout(), and agtail.
Referenced by nextedge().
Definition at line 373 of file gv.cpp.
References agnxtsubg().
Definition at line 503 of file gv.cpp.
References agfindedge, AGMKIN, agnxtin(), agraphof(), and agtail.
bool ok | ( | Agraph_t * | g | ) |
Definition at line 362 of file gv.cpp.
Referenced by dtvsearch(), and onematch().
Agraph_t * read | ( | const char * | filename | ) |
Agraph_t * read | ( | FILE * | f | ) |
Agraph_t * readstring | ( | char * | string | ) |
Definition at line 54 of file gv.cpp.
References agmemread(), gv_init(), and gvc.
bool render | ( | Agraph_t * | g | ) |
Definition at line 624 of file gv.cpp.
References attach_attrs().
Referenced by gvplugin_graph().
bool render | ( | Agraph_t * | g, |
const char * | format | ||
) |
bool render | ( | Agraph_t * | g, |
const char * | format, | ||
const char * | filename | ||
) |
bool render | ( | Agraph_t * | g, |
const char * | format, | ||
FILE * | f | ||
) |
bool renderchannel | ( | Agraph_t * | g, |
const char * | format, | ||
const char * | channelname | ||
) |
Definition at line 648 of file gv.cpp.
References err, format, gv_channel_writer_init(), gv_writer_reset(), gvc, and gvRender().
char * renderdata | ( | Agraph_t * | g, |
const char * | format | ||
) |
char * renderresult | ( | Agraph_t * | g, |
const char * | format | ||
) |
Definition at line 672 of file gv.cpp.
References BA::data, format, GD_alg, gv_calloc(), gv_string_writer_init(), gv_writer_reset(), gvc, gvRender(), BA::len, and BA::sz.
void renderresult | ( | Agraph_t * | g, |
const char * | format, | ||
char * | outdata | ||
) |
Definition at line 690 of file gv.cpp.
References format, gv_string_writer_init(), gv_writer_reset(), gvc, and gvRender().
bool rm | ( | Agedge_t * | e | ) |
Definition at line 604 of file gv.cpp.
References agdelete(), aghead, agnameof(), agraphof(), agroot(), and agtail.
bool rm | ( | Agnode_t * | n | ) |
Definition at line 594 of file gv.cpp.
References agdelete(), agnameof(), and agraphof().
bool rm | ( | Agraph_t * | g | ) |
Definition at line 221 of file gv.cpp.
References AGRAPH, AGTYPE, and myagxset().
char * setv | ( | Agedge_t * | e, |
char * | attr, | ||
char * | val | ||
) |
Definition at line 229 of file gv.cpp.
References agattr_text(), AGEDGE, AGRAPH, agraphof(), agroot(), agtail, AGTYPE, emptystring, and myagxset().
Definition at line 178 of file gv.cpp.
References AGRAPH, AGTYPE, and myagxset().
char * setv | ( | Agnode_t * | n, |
char * | attr, | ||
char * | val | ||
) |
Definition at line 186 of file gv.cpp.
References agattr_text(), AGNODE, AGRAPH, agraphof(), agroot(), AGTYPE, emptystring, and myagxset().
Definition at line 146 of file gv.cpp.
References myagxset().
char * setv | ( | Agraph_t * | g, |
char * | attr, | ||
char * | val | ||
) |
Definition at line 152 of file gv.cpp.
References agfindattr, agraphattr, agroot(), emptystring, myagxset(), and Agraph_s::root.
Agraph_t * strictdigraph | ( | char * | name | ) |
Agraph_t * strictgraph | ( | char * | name | ) |
bool tred | ( | Agraph_t * | g | ) |
Definition at line 728 of file gv.cpp.
References err, and gvToolTred().
bool write | ( | Agraph_t * | g, |
const char * | filename | ||
) |
bool write | ( | Agraph_t * | g, |
FILE * | f | ||
) |
|
static |
|
static |
Definition at line 23 of file gv.cpp.
Referenced by cloneGraph(), config_extra_args(), core_loadimage_null(), digraph(), dotneato_args_initialize(), edge(), emit_node(), emit_view(), graph(), graph(), graphcmd_internal(), gv_channel_writer_init(), gv_init(), gv_string_writer_init(), gv_writer_reset(), gvAddLibrary(), gvcBuildDate(), gvcInfo(), gvCloneGVC(), gvconfig(), gvconfig_plugin_install_builtins(), gvconfig_plugin_install_from_library(), gvContext(), gvContextPlugins(), gvcVersion(), gvdevice_initialize(), gvevent_read(), gvFinalize(), gvFreeCloneGVC(), gvFreeContext(), gvFreeLayout(), gvg_init(), gvjobs_delete(), gvjobs_first(), gvjobs_next(), gvjobs_output_filename(), gvjobs_output_langname(), gvLayout(), gvlayout_select(), gvLayoutJobs(), gvNEWcontext(), gvNextInputGraph(), gvParseArgs(), gvplugin_activate(), gvplugin_graph(), gvplugin_install(), gvplugin_library_load(), gvplugin_list(), gvplugin_load(), gvplugin_package_record(), gvplugin_write_status(), gvPluginList(), gvPluginsGraph(), gvRender(), gvrender_select(), gvRenderContext(), gvRenderData(), gvRenderFilename(), gvRenderJobs(), gvtextlayout(), gvtextlayout_select(), init_graph(), init_gvc(), init_job_margin(), init_job_pad(), init_job_pagination(), init_job_viewport(), init_layering(), json_begin_graph(), layer_index(), layout(), LoadPlugins(), main(), main(), main(), make_simple_label(), node(), parse_layers(), parse_layerselect(), read(), read(), readGraphs(), readstring(), render(), render(), render(), renderchannel(), renderdata(), renderresult(), renderresult(), selectedLayer(), size_html_txt(), storeline(), strictdigraph(), strictgraph(), tcldot_layout(), textfont_dict_close(), textfont_dict_open(), textspan_size(), use_library(), and xdotBB().