/misc/src/release/graphviz-2.18-1/src/graphviz-2.18/tclpkg/gv/gv.cpp File Reference

#include <string.h>
#include "gvc.h"

Include dependency graph for gv.cpp:

Go to the source code of this file.

Functions

void gv_binding_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 (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, char *engine)
bool render (Agraph_t *g)
bool render (Agraph_t *g, char *format, char *filename)
bool render (Agraph_t *g, char *format)
bool render (Agraph_t *g, char *format, FILE *f)
char * renderdata (Agraph_t *g, char *format)
bool write (Agraph_t *g, FILE *f)
bool write (Agraph_t *g, char *filename)


Function Documentation

Agraph_t* digraph ( char *  name  ) 

Definition at line 35 of file gv.cpp.

References AGDIGRAPH, and agopen().

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

Definition at line 116 of file gv.cpp.

References edge(), and node().

Agedge_t* edge ( Agnode_t t,
char *  hname 
)

Definition at line 110 of file gv.cpp.

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

Agedge_t* edge ( char *  tname,
Agnode_t h 
)

Definition at line 104 of file gv.cpp.

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

Agedge_t* edge ( Agnode_t t,
Agnode_t h 
)

Definition at line 93 of file gv.cpp.

References agedge(), Agnode_t::graph, Agnode_t::name, and NULL.

Referenced by edge().

Agsym_t* findattr ( Agedge_t e,
char *  name 
)

Definition at line 301 of file gv.cpp.

References agfindattr(), and NULL.

Agsym_t* findattr ( Agnode_t n,
char *  name 
)

Definition at line 294 of file gv.cpp.

References agfindattr(), and NULL.

Agsym_t* findattr ( Agraph_t g,
char *  name 
)

Definition at line 287 of file gv.cpp.

References agfindattr(), and NULL.

Agedge_t* findedge ( Agnode_t t,
Agnode_t h 
)

Definition at line 280 of file gv.cpp.

References agfindedge(), Agnode_t::graph, and NULL.

Agnode_t* findnode ( Agraph_t g,
char *  name 
)

Definition at line 273 of file gv.cpp.

References agfindnode(), and NULL.

Agraph_t* findsubg ( Agraph_t g,
char *  name 
)

Definition at line 266 of file gv.cpp.

References agfindsubg(), and NULL.

Agsym_t* firstattr ( Agedge_t e  ) 

Definition at line 760 of file gv.cpp.

References Agdict_t::dict, dtsize(), Agdata_t::edgeattr, Agnode_t::graph, Agdict_t::list, NULL, Agedge_t::tail, and Agraph_t::univ.

Agsym_t* firstattr ( Agnode_t n  ) 

Definition at line 731 of file gv.cpp.

References Agdict_t::dict, dtsize(), Agnode_t::graph, Agdict_t::list, Agdata_t::nodeattr, NULL, and Agraph_t::univ.

Agsym_t* firstattr ( Agraph_t g  ) 

Definition at line 705 of file gv.cpp.

References Agdict_t::dict, dtsize(), Agdata_t::globattr, Agdict_t::list, NULL, Agraph_t::root, and Agraph_t::univ.

Agedge_t* firstedge ( Agnode_t n  ) 

Definition at line 592 of file gv.cpp.

References agfstedge(), Agnode_t::graph, and NULL.

Agedge_t* firstedge ( Agraph_t g  ) 

Definition at line 535 of file gv.cpp.

References firstout(), and NULL.

Agnode_t* firsthead ( Agnode_t n  ) 

Definition at line 563 of file gv.cpp.

References agfstout(), Agnode_t::graph, Agedge_t::head, and NULL.

Agedge_t* firstin ( Agnode_t n  ) 

Definition at line 634 of file gv.cpp.

References agfstin(), Agnode_t::graph, and NULL.

Agedge_t* firstin ( Agraph_t g  ) 

Definition at line 606 of file gv.cpp.

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

Agnode_t* firstnode ( Agedge_t e  ) 

Definition at line 691 of file gv.cpp.

References NULL, and Agedge_t::tail.

Agnode_t* firstnode ( Agraph_t g  ) 

Definition at line 677 of file gv.cpp.

References agfstnode(), and NULL.

Agedge_t* firstout ( Agnode_t n  ) 

Definition at line 549 of file gv.cpp.

References agfstout(), Agnode_t::graph, and NULL.

Agedge_t* firstout ( Agraph_t g  ) 

Definition at line 507 of file gv.cpp.

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

Referenced by firstedge().

Agraph_t* firstsubg ( Agraph_t g  ) 

Definition at line 419 of file gv.cpp.

References agfstout(), agusergraph(), Agnode_t::graph, Agedge_t::head, Agraph_t::meta_node, and NULL.

Agraph_t* firstsupg ( Agraph_t g  ) 

Definition at line 463 of file gv.cpp.

References agfstin(), agusergraph(), Agnode_t::graph, Agraph_t::meta_node, NULL, and Agedge_t::tail.

Agnode_t* firsttail ( Agnode_t n  ) 

Definition at line 648 of file gv.cpp.

References agfstin(), Agnode_t::graph, NULL, and Agedge_t::tail.

char* getv ( Agedge_t e,
char *  attr 
)

Definition at line 233 of file gv.cpp.

References agfindattr(), Agproto_t::e, Agnode_t::graph, NULL, Agraph_t::proto, and Agedge_t::tail.

char* getv ( Agedge_t e,
Agsym_t a 
)

Definition at line 229 of file gv.cpp.

char* getv ( Agnode_t n,
char *  attr 
)

Definition at line 196 of file gv.cpp.

References agfindattr(), Agnode_t::graph, Agproto_t::n, NULL, Agraph_t::proto, and Agraph_t::root.

char* getv ( Agnode_t n,
Agsym_t a 
)

Definition at line 192 of file gv.cpp.

char* getv ( Agraph_t g,
char *  attr 
)

Definition at line 147 of file gv.cpp.

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

char* getv ( Agraph_t g,
Agsym_t a 
)

Definition at line 143 of file gv.cpp.

Agraph_t* graph ( Agraph_t g,
char *  name 
)

Definition at line 79 of file gv.cpp.

References agsubg().

Agraph_t* graph ( char *  name  ) 

Definition at line 29 of file gv.cpp.

References agopen(), and AGRAPH.

Referenced by agsafeset(), bfs(), bfs_bounded(), circuitModel(), closest_pairs2graph(), common_neighbors(), compute_apsp(), compute_apsp_artifical_weights(), compute_apsp_artifical_weights_packed(), compute_apsp_packed(), compute_new_weights(), dijkstra(), dijkstra_bounded(), dijkstra_f(), embed_graph(), empty_neighbors_vec(), fill_neighbors_vec_unweighted(), initLayout(), restore_old_weights(), and stress_majorization_kD_mkernel().

Agraph_t* graphof ( Agnode_t n  ) 

Definition at line 338 of file gv.cpp.

References Agnode_t::graph, and NULL.

Agraph_t* graphof ( Agedge_t e  ) 

Definition at line 331 of file gv.cpp.

References Agnode_t::graph, NULL, and Agedge_t::tail.

Agraph_t* graphof ( Agraph_t g  ) 

Definition at line 324 of file gv.cpp.

References NULL, and Agraph_t::root.

void gv_binding_init ( GVC_t gvc  ) 

Definition at line 3 of file gv_dummy_init.cpp.

References GVC_s::write_fn.

Agnode_t* headof ( Agedge_t e  ) 

Definition at line 310 of file gv.cpp.

References Agedge_t::head, and NULL.

bool layout ( Agraph_t g,
char *  engine 
)

Definition at line 828 of file gv.cpp.

References gvFreeLayout(), and gvLayout().

char* nameof ( Agsym_t a  ) 

Definition at line 386 of file gv.cpp.

References Agsym_t::name, and NULL.

char* nameof ( Agnode_t n  ) 

Definition at line 374 of file gv.cpp.

References Agnode_t::name, and NULL.

char* nameof ( Agraph_t g  ) 

Definition at line 368 of file gv.cpp.

References Agraph_t::name, and NULL.

Agsym_t* nextattr ( Agedge_t e,
Agsym_t a 
)

Definition at line 772 of file gv.cpp.

References Agdict_t::dict, dtsize(), Agdata_t::edgeattr, Agnode_t::graph, Agdict_t::list, NULL, Agedge_t::tail, and Agraph_t::univ.

Agsym_t* nextattr ( Agnode_t n,
Agsym_t a 
)

Definition at line 743 of file gv.cpp.

References Agdict_t::dict, dtsize(), Agnode_t::graph, Agdict_t::list, Agdata_t::nodeattr, NULL, and Agraph_t::univ.

Agsym_t* nextattr ( Agraph_t g,
Agsym_t a 
)

Definition at line 715 of file gv.cpp.

References Agdict_t::dict, dtsize(), Agdata_t::globattr, Agdict_t::list, NULL, Agraph_t::root, and Agraph_t::univ.

Agedge_t* nextedge ( Agnode_t n,
Agedge_t e 
)

Definition at line 599 of file gv.cpp.

References agnxtedge(), Agnode_t::graph, and NULL.

Agedge_t* nextedge ( Agraph_t g,
Agedge_t e 
)

Definition at line 542 of file gv.cpp.

References nextout(), and NULL.

Agnode_t* nexthead ( Agnode_t n,
Agnode_t h 
)

Definition at line 575 of file gv.cpp.

References agfindedge(), agnxtout(), Agnode_t::graph, Agedge_t::head, and NULL.

Agedge_t* nextin ( Agnode_t n,
Agedge_t e 
)

Definition at line 641 of file gv.cpp.

References agnxtin(), Agnode_t::graph, and NULL.

Agedge_t* nextin ( Agraph_t g,
Agedge_t e 
)

Definition at line 618 of file gv.cpp.

References agfstin(), agnxtin(), agnxtnode(), Agedge_t::head, and NULL.

Agnode_t* nextnode ( Agedge_t e,
Agnode_t n 
)

Definition at line 698 of file gv.cpp.

References Agedge_t::head, NULL, and Agedge_t::tail.

Agnode_t* nextnode ( Agraph_t g,
Agnode_t n 
)

Definition at line 684 of file gv.cpp.

References agnxtnode(), and NULL.

Agedge_t* nextout ( Agnode_t n,
Agedge_t e 
)

Definition at line 556 of file gv.cpp.

References agnxtout(), Agnode_t::graph, and NULL.

Agedge_t* nextout ( Agraph_t g,
Agedge_t e 
)

Definition at line 519 of file gv.cpp.

References agfstout(), agnxtnode(), agnxtout(), NULL, and Agedge_t::tail.

Referenced by nextedge().

Agraph_t* nextsubg ( Agraph_t g,
Agraph_t sg 
)

Definition at line 439 of file gv.cpp.

References agfindedge(), agnxtout(), agusergraph(), Agnode_t::graph, Agedge_t::head, Agraph_t::meta_node, and NULL.

Agraph_t* nextsupg ( Agraph_t g,
Agraph_t sg 
)

Definition at line 483 of file gv.cpp.

References agfindedge(), agnxtin(), agusergraph(), Agnode_t::graph, Agraph_t::meta_node, NULL, and Agedge_t::tail.

Agnode_t* nexttail ( Agnode_t n,
Agnode_t t 
)

Definition at line 660 of file gv.cpp.

References agfindedge(), agnxtout(), Agnode_t::graph, NULL, and Agedge_t::tail.

Agnode_t* node ( Agraph_t g,
char *  name 
)

Definition at line 85 of file gv.cpp.

References agnode(), and NULL.

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

bool ok ( Agsym_t a  ) 

Definition at line 412 of file gv.cpp.

bool ok ( Agedge_t e  ) 

Definition at line 406 of file gv.cpp.

bool ok ( Agnode_t n  ) 

Definition at line 400 of file gv.cpp.

bool ok ( Agraph_t g  ) 

Definition at line 394 of file gv.cpp.

Agedge_t* protoedge ( Agraph_t g  ) 

Definition at line 360 of file gv.cpp.

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

Agnode_t* protonode ( Agraph_t g  ) 

Definition at line 353 of file gv.cpp.

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

Agraph_t* read ( char *  filename  ) 

Definition at line 65 of file gv.cpp.

References agread(), and NULL.

Agraph_t* read ( FILE *  f  ) 

Definition at line 59 of file gv.cpp.

References agread().

Agraph_t* readstring ( char *  string  ) 

Definition at line 53 of file gv.cpp.

References agmemread().

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

Definition at line 863 of file gv.cpp.

References gvRender().

bool render ( Agraph_t g,
char *  format 
)

Definition at line 854 of file gv.cpp.

References gvRender().

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

Definition at line 845 of file gv.cpp.

References gvRenderFilename().

bool render ( Agraph_t g  ) 

Definition at line 838 of file gv.cpp.

References attach_attrs().

char* renderdata ( Agraph_t g,
char *  format 
)

Definition at line 872 of file gv.cpp.

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

bool rm ( Agedge_t e  ) 

Definition at line 818 of file gv.cpp.

References agdelete(), Agnode_t::graph, Agedge_t::head, Agnode_t::name, Agraph_t::root, and Agedge_t::tail.

bool rm ( Agnode_t n  ) 

Definition at line 809 of file gv.cpp.

References agdelete(), Agnode_t::graph, and Agnode_t::name.

bool rm ( Agraph_t g  ) 

Definition at line 789 of file gv.cpp.

References agclose(), agdelete(), agfstout(), agnxtout(), agusergraph(), Agnode_t::graph, Agedge_t::head, Agraph_t::meta_node, and Agraph_t::root.

Agraph_t* rootof ( Agraph_t g  ) 

Definition at line 345 of file gv.cpp.

References NULL, and Agraph_t::root.

char* setv ( Agedge_t e,
char *  attr,
char *  val 
)

Definition at line 251 of file gv.cpp.

References agedgeattr(), agfindattr(), Agproto_t::e, Agnode_t::graph, NULL, Agraph_t::proto, Agraph_t::root, and Agedge_t::tail.

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

Definition at line 244 of file gv.cpp.

References NULL.

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

Definition at line 214 of file gv.cpp.

References agfindattr(), agnodeattr(), Agnode_t::graph, Agproto_t::n, NULL, Agraph_t::proto, and Agraph_t::root.

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

Definition at line 207 of file gv.cpp.

References NULL.

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

Definition at line 179 of file gv.cpp.

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

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

Definition at line 172 of file gv.cpp.

References NULL.

Agraph_t* strictdigraph ( char *  name  ) 

Definition at line 47 of file gv.cpp.

References AGDIGRAPHSTRICT, and agopen().

Agraph_t* strictgraph ( char *  name  ) 

Definition at line 41 of file gv.cpp.

References agopen(), and AGRAPHSTRICT.

Agnode_t* tailof ( Agedge_t e  ) 

Definition at line 317 of file gv.cpp.

References NULL, and Agedge_t::tail.

bool write ( Agraph_t g,
char *  filename 
)

Definition at line 893 of file gv.cpp.

References agwrite().

bool write ( Agraph_t g,
FILE *  f 
)

Definition at line 885 of file gv.cpp.

References agwrite().


Generated on Mon Mar 31 19:08:13 2008 for Graphviz by  doxygen 1.5.1