Graphviz  2.29.20120524.0446
Functions
tclpkg/gv/gv.cpp File Reference
#include <string.h>
#include <stdlib.h>
#include "gvc.h"
Include dependency graph for gv.cpp:

Go to the source code of this file.

Functions

void gv_string_writer_init (GVC_t *gvc)
void gv_channel_writer_init (GVC_t *gvc)
Agraph_tgraph (char *name)
Agraph_tdigraph (char *name)
Agraph_tstrictgraph (char *name)
Agraph_tstrictdigraph (char *name)
Agraph_treadstring (char *string)
Agraph_tread (FILE *f)
Agraph_tread (const char *filename)
Agraph_tgraph (Agraph_t *g, char *name)
Agnode_tnode (Agraph_t *g, char *name)
Agedge_tedge (Agnode_t *t, Agnode_t *h)
Agedge_tedge (char *tname, Agnode_t *h)
Agedge_tedge (Agnode_t *t, char *hname)
Agedge_tedge (Agraph_t *g, char *tname, char *hname)
char * getv (Agraph_t *g, Agsym_t *a)
char * getv (Agraph_t *g, char *attr)
char * setv (Agraph_t *g, Agsym_t *a, char *val)
char * setv (Agraph_t *g, char *attr, char *val)
char * getv (Agnode_t *n, Agsym_t *a)
char * getv (Agnode_t *n, char *attr)
char * setv (Agnode_t *n, Agsym_t *a, char *val)
char * setv (Agnode_t *n, char *attr, char *val)
char * getv (Agedge_t *e, Agsym_t *a)
char * getv (Agedge_t *e, char *attr)
char * setv (Agedge_t *e, Agsym_t *a, char *val)
char * setv (Agedge_t *e, char *attr, char *val)
Agraph_tfindsubg (Agraph_t *g, char *name)
Agnode_tfindnode (Agraph_t *g, char *name)
Agedge_tfindedge (Agnode_t *t, Agnode_t *h)
Agsym_tfindattr (Agraph_t *g, char *name)
Agsym_tfindattr (Agnode_t *n, char *name)
Agsym_tfindattr (Agedge_t *e, char *name)
Agnode_theadof (Agedge_t *e)
Agnode_ttailof (Agedge_t *e)
Agraph_tgraphof (Agraph_t *g)
Agraph_tgraphof (Agedge_t *e)
Agraph_tgraphof (Agnode_t *n)
Agraph_trootof (Agraph_t *g)
Agnode_tprotonode (Agraph_t *g)
Agedge_tprotoedge (Agraph_t *g)
char * nameof (Agraph_t *g)
char * nameof (Agnode_t *n)
char * nameof (Agsym_t *a)
bool ok (Agraph_t *g)
bool ok (Agnode_t *n)
bool ok (Agedge_t *e)
bool ok (Agsym_t *a)
Agraph_tfirstsubg (Agraph_t *g)
Agraph_tnextsubg (Agraph_t *g, Agraph_t *sg)
Agraph_tfirstsupg (Agraph_t *g)
Agraph_tnextsupg (Agraph_t *g, Agraph_t *sg)
Agedge_tfirstout (Agraph_t *g)
Agedge_tnextout (Agraph_t *g, Agedge_t *e)
Agedge_tfirstedge (Agraph_t *g)
Agedge_tnextedge (Agraph_t *g, Agedge_t *e)
Agedge_tfirstout (Agnode_t *n)
Agedge_tnextout (Agnode_t *n, Agedge_t *e)
Agnode_tfirsthead (Agnode_t *n)
Agnode_tnexthead (Agnode_t *n, Agnode_t *h)
Agedge_tfirstedge (Agnode_t *n)
Agedge_tnextedge (Agnode_t *n, Agedge_t *e)
Agedge_tfirstin (Agraph_t *g)
Agedge_tnextin (Agraph_t *g, Agedge_t *e)
Agedge_tfirstin (Agnode_t *n)
Agedge_tnextin (Agnode_t *n, Agedge_t *e)
Agnode_tfirsttail (Agnode_t *n)
Agnode_tnexttail (Agnode_t *n, Agnode_t *t)
Agnode_tfirstnode (Agraph_t *g)
Agnode_tnextnode (Agraph_t *g, Agnode_t *n)
Agnode_tfirstnode (Agedge_t *e)
Agnode_tnextnode (Agedge_t *e, Agnode_t *n)
Agsym_tfirstattr (Agraph_t *g)
Agsym_tnextattr (Agraph_t *g, Agsym_t *a)
Agsym_tfirstattr (Agnode_t *n)
Agsym_tnextattr (Agnode_t *n, Agsym_t *a)
Agsym_tfirstattr (Agedge_t *e)
Agsym_tnextattr (Agedge_t *e, Agsym_t *a)
bool rm (Agraph_t *g)
bool rm (Agnode_t *n)
bool rm (Agedge_t *e)
bool layout (Agraph_t *g, const char *engine)
bool render (Agraph_t *g)
bool render (Agraph_t *g, const char *format)
bool render (Agraph_t *g, const char *format, FILE *f)
bool renderchannel (Agraph_t *g, const char *format, const char *channelname)
bool render (Agraph_t *g, const char *format, const char *filename)
void renderresult (Agraph_t *g, const char *format, char *outdata)
char * renderdata (Agraph_t *g, const char *format)
bool write (Agraph_t *g, FILE *f)
bool write (Agraph_t *g, const char *filename)

Function Documentation

Agraph_t* digraph ( char *  name)

Definition at line 50 of file gv.cpp.

References agopen(), and AGDIGRAPH.

Agedge_t* edge ( Agnode_t t,
Agnode_t h 
)

Definition at line 146 of file gv.cpp.

References NULL, AGRAPH, agedge(), agraphof, agnameof, and Agnode_t::graph.

Referenced by edge().

Agedge_t* edge ( char *  tname,
Agnode_t h 
)

Definition at line 165 of file gv.cpp.

References edge(), node(), agraphof, and Agnode_t::graph.

Agedge_t* edge ( Agnode_t t,
char *  hname 
)

Definition at line 175 of file gv.cpp.

References edge(), node(), agraphof, and Agnode_t::graph.

Agedge_t* edge ( Agraph_t g,
char *  tname,
char *  hname 
)

Definition at line 185 of file gv.cpp.

References edge(), and node().

Agsym_t* findattr ( Agraph_t g,
char *  name 
)

Definition at line 442 of file gv.cpp.

References NULL, and agfindattr().

Agsym_t* findattr ( Agnode_t n,
char *  name 
)

Definition at line 449 of file gv.cpp.

References NULL, and agfindattr().

Agsym_t* findattr ( Agedge_t e,
char *  name 
)

Definition at line 456 of file gv.cpp.

References NULL, and agfindattr().

Agedge_t* findedge ( Agnode_t t,
Agnode_t h 
)

Definition at line 431 of file gv.cpp.

References NULL, AGRAPH, agfindedge(), and agraphof.

Agnode_t* findnode ( Agraph_t g,
char *  name 
)

Definition at line 420 of file gv.cpp.

References NULL, agfindnode(), and agnode().

Agraph_t* findsubg ( Agraph_t g,
char *  name 
)

Definition at line 409 of file gv.cpp.

References NULL, agfindsubg(), and agsubg().

Agsym_t* firstattr ( Agraph_t g)
Agsym_t* firstattr ( Agnode_t n)
Agsym_t* firstattr ( Agedge_t e)
Agedge_t* firstedge ( Agraph_t g)

Definition at line 749 of file gv.cpp.

References firstout().

Agedge_t* firstedge ( Agnode_t n)

Definition at line 804 of file gv.cpp.

References NULL, agfstedge(), and agraphof.

Agnode_t* firsthead ( Agnode_t n)

Definition at line 773 of file gv.cpp.

References NULL, agfstout(), agraphof, and aghead.

Agedge_t* firstin ( Agraph_t g)

Definition at line 818 of file gv.cpp.

References NULL, agfstnode(), and agfstin().

Agedge_t* firstin ( Agnode_t n)

Definition at line 846 of file gv.cpp.

References NULL, agfstin(), and agraphof.

Agnode_t* firstnode ( Agraph_t g)

Definition at line 891 of file gv.cpp.

References NULL, and agfstnode().

Agnode_t* firstnode ( Agedge_t e)

Definition at line 905 of file gv.cpp.

References NULL, and agtail.

Agedge_t* firstout ( Agraph_t g)

Definition at line 718 of file gv.cpp.

References NULL, agfstnode(), agnxtnode(), and agfstout().

Referenced by firstedge().

Agedge_t* firstout ( Agnode_t n)

Definition at line 759 of file gv.cpp.

References NULL, agfstout(), and agraphof.

Agraph_t* firstsubg ( Agraph_t g)

Definition at line 606 of file gv.cpp.

References NULL, Agraph_t::meta_node, agraphof, agfstout(), agusergraph(), and aghead.

Agraph_t* firstsupg ( Agraph_t g)

Definition at line 673 of file gv.cpp.

References NULL, Agraph_t::meta_node, agraphof, agfstin(), agusergraph(), and agtail.

Agnode_t* firsttail ( Agnode_t n)

Definition at line 860 of file gv.cpp.

References NULL, agfstin(), agraphof, and agtail.

char* getv ( Agraph_t g,
Agsym_t a 
)

Definition at line 216 of file gv.cpp.

char* getv ( Agraph_t g,
char *  attr 
)

Definition at line 220 of file gv.cpp.

References NULL, agfindattr(), and agroot.

char* getv ( Agnode_t n,
Agsym_t a 
)

Definition at line 273 of file gv.cpp.

References NULL, and AGRAPH.

char* getv ( Agnode_t n,
char *  attr 
)

Definition at line 283 of file gv.cpp.

References NULL, AGRAPH, agroot, agraphof, agattr(), AGNODE, agfindattr(), Agraph_t::proto, and Agproto_t::n.

char* getv ( Agedge_t e,
Agsym_t a 
)

Definition at line 340 of file gv.cpp.

References NULL, and AGRAPH.

char* getv ( Agedge_t e,
char *  attr 
)

Definition at line 350 of file gv.cpp.

References NULL, AGRAPH, agraphof, agtail, agfindattr(), Agraph_t::proto, Agproto_t::e, agattr(), and AGEDGE.

Agraph_t* graph ( char *  name)

Definition at line 39 of file gv.cpp.

References agopen(), and AGRAPH.

Referenced by agattr(), and agsafeset().

Agraph_t* graph ( Agraph_t g,
char *  name 
)

Definition at line 121 of file gv.cpp.

References agsubg().

Agraph_t* graphof ( Agraph_t g)

Definition at line 487 of file gv.cpp.

References Agraph_t::root, NULL, and agroot.

Agraph_t* graphof ( Agedge_t e)

Definition at line 494 of file gv.cpp.

References NULL, AGRAPH, agraphof, and agtail.

Agraph_t* graphof ( Agnode_t n)

Definition at line 505 of file gv.cpp.

References NULL, AGRAPH, and agraphof.

void gv_channel_writer_init ( GVC_t gvc)

Definition at line 4 of file gv_dummy_init.c.

References GVC_s::write_fn.

Referenced by renderchannel().

void gv_string_writer_init ( GVC_t gvc)

Definition at line 3 of file gv_dummy_init.c.

References GVC_s::write_fn.

Referenced by renderresult().

Agnode_t* headof ( Agedge_t e)

Definition at line 465 of file gv.cpp.

References NULL, AGRAPH, and aghead.

bool layout ( Agraph_t g,
const char *  engine 
)

Definition at line 1083 of file gv.cpp.

References gvFreeLayout(), and gvLayout().

Referenced by dotneato_args_initialize(), and fdpLayout().

char* nameof ( Agraph_t g)

Definition at line 547 of file gv.cpp.

References NULL, and agnameof.

char* nameof ( Agnode_t n)

Definition at line 553 of file gv.cpp.

References NULL, AGRAPH, and agnameof.

char* nameof ( Agsym_t a)

Definition at line 573 of file gv.cpp.

References NULL, and Agsym_t::name.

Agsym_t* nextattr ( Agraph_t g,
Agsym_t a 
)
Agsym_t* nextattr ( Agnode_t n,
Agsym_t a 
)
Agsym_t* nextattr ( Agedge_t e,
Agsym_t a 
)
Agedge_t* nextedge ( Agraph_t g,
Agedge_t e 
)

Definition at line 754 of file gv.cpp.

References nextout().

Agedge_t* nextedge ( Agnode_t n,
Agedge_t e 
)

Definition at line 811 of file gv.cpp.

References NULL, agnxtedge(), and agraphof.

Agnode_t* nexthead ( Agnode_t n,
Agnode_t h 
)

Definition at line 785 of file gv.cpp.

References NULL, agraphof, agfindedge(), agnxtout(), and aghead.

Agedge_t* nextin ( Agraph_t g,
Agedge_t e 
)

Definition at line 830 of file gv.cpp.

References ne, NULL, agnxtin(), agnxtnode(), aghead, and agfstin().

Agedge_t* nextin ( Agnode_t n,
Agedge_t e 
)

Definition at line 853 of file gv.cpp.

References NULL, agnxtin(), and agraphof.

Agnode_t* nextnode ( Agraph_t g,
Agnode_t n 
)

Definition at line 898 of file gv.cpp.

References NULL, and agnxtnode().

Agnode_t* nextnode ( Agedge_t e,
Agnode_t n 
)

Definition at line 912 of file gv.cpp.

References agtail, NULL, and aghead.

Agedge_t* nextout ( Agraph_t g,
Agedge_t e 
)

Definition at line 732 of file gv.cpp.

References ne, NULL, agnxtout(), agnxtnode(), agtail, and agfstout().

Referenced by nextedge().

Agedge_t* nextout ( Agnode_t n,
Agedge_t e 
)

Definition at line 766 of file gv.cpp.

References NULL, agnxtout(), and agraphof.

Agraph_t* nextsubg ( Agraph_t g,
Agraph_t sg 
)

Definition at line 632 of file gv.cpp.

References NULL, Agraph_t::meta_node, agraphof, agfindedge(), agnxtout(), agusergraph(), and aghead.

Agraph_t* nextsupg ( Agraph_t g,
Agraph_t sg 
)

Definition at line 693 of file gv.cpp.

References NULL, Agraph_t::meta_node, agraphof, agfindedge(), agnxtin(), agusergraph(), and agtail.

Agnode_t* nexttail ( Agnode_t n,
Agnode_t t 
)

Definition at line 872 of file gv.cpp.

References NULL, agraphof, agfindedge(), agnxtout(), and agtail.

Agnode_t* node ( Agraph_t g,
char *  name 
)

Definition at line 132 of file gv.cpp.

References NULL, and agnode().

Referenced by stackCheck(), embed_graph(), s1(), and edge().

bool ok ( Agraph_t g)

Definition at line 581 of file gv.cpp.

bool ok ( Agnode_t n)

Definition at line 587 of file gv.cpp.

bool ok ( Agedge_t e)

Definition at line 593 of file gv.cpp.

bool ok ( Agsym_t a)

Definition at line 599 of file gv.cpp.

Agedge_t* protoedge ( Agraph_t g)

Definition at line 535 of file gv.cpp.

References NULL, Agraph_t::proto, and Agproto_t::e.

Agnode_t* protonode ( Agraph_t g)

Definition at line 524 of file gv.cpp.

References NULL, Agraph_t::proto, and Agproto_t::n.

Agraph_t* read ( FILE *  f)

Definition at line 90 of file gv.cpp.

References agread(), and NULL.

Agraph_t* read ( const char *  filename)

Definition at line 101 of file gv.cpp.

References NULL, and agread().

Agraph_t* readstring ( char *  string)

Definition at line 83 of file gv.cpp.

References agmemread().

bool render ( Agraph_t g)

Definition at line 1095 of file gv.cpp.

References attach_attrs().

bool render ( Agraph_t g,
const char *  format 
)

Definition at line 1104 of file gv.cpp.

References gvRender().

bool render ( Agraph_t g,
const char *  format,
FILE *  f 
)

Definition at line 1115 of file gv.cpp.

References gvRender().

bool render ( Agraph_t g,
const char *  format,
const char *  filename 
)

Definition at line 1138 of file gv.cpp.

References gvRenderFilename().

bool renderchannel ( Agraph_t g,
const char *  format,
const char *  channelname 
)

Definition at line 1126 of file gv.cpp.

References gv_channel_writer_init(), and gvRender().

char* renderdata ( Agraph_t g,
const char *  format 
)

Definition at line 1160 of file gv.cpp.

References NULL, gvRenderData(), and realloc().

void renderresult ( Agraph_t g,
const char *  format,
char *  outdata 
)

Definition at line 1149 of file gv.cpp.

References gv_string_writer_init(), and gvRender().

bool rm ( Agraph_t g)
bool rm ( Agnode_t n)

Definition at line 1060 of file gv.cpp.

References agnameof, agdelete(), and agraphof.

bool rm ( Agedge_t e)

Definition at line 1071 of file gv.cpp.

References agnameof, aghead, agtail, agdelete(), agroot, and agraphof.

Agraph_t* rootof ( Agraph_t g)

Definition at line 516 of file gv.cpp.

References NULL, and agroot.

char* setv ( Agraph_t g,
Agsym_t a,
char *  val 
)

Definition at line 253 of file gv.cpp.

References NULL.

char* setv ( Agraph_t g,
char *  attr,
char *  val 
)

Definition at line 260 of file gv.cpp.

References NULL, agfindattr(), agroot, agraphattr(), and Agraph_t::root.

char* setv ( Agnode_t n,
Agsym_t a,
char *  val 
)

Definition at line 302 of file gv.cpp.

References NULL, and AGRAPH.

char* setv ( Agnode_t n,
char *  attr,
char *  val 
)

Definition at line 313 of file gv.cpp.

References NULL, AGRAPH, agattr(), AGNODE, agroot, agraphof, agfindattr(), Agraph_t::proto, Agproto_t::n, and agnodeattr().

char* setv ( Agedge_t e,
Agsym_t a,
char *  val 
)

Definition at line 369 of file gv.cpp.

References NULL, and AGRAPH.

char* setv ( Agedge_t e,
char *  attr,
char *  val 
)
Agraph_t* strictdigraph ( char *  name)

Definition at line 72 of file gv.cpp.

References agopen(), and AGDIGRAPHSTRICT.

Agraph_t* strictgraph ( char *  name)

Definition at line 61 of file gv.cpp.

References agopen(), and AGRAPHSTRICT.

Agnode_t* tailof ( Agedge_t e)

Definition at line 476 of file gv.cpp.

References NULL, AGRAPH, and agtail.

bool write ( Agraph_t g,
FILE *  f 
)

Definition at line 1175 of file gv.cpp.

References agwrite().

bool write ( Agraph_t g,
const char *  filename 
)

Definition at line 1185 of file gv.cpp.

References agwrite().