|
Graphviz 14.0.3~dev.20251028.0232
|
#include <stdlib.h>#include <string.h>#include <arith.h>#include <gml2gv.h>#include <assert.h>#include <util/agxbuf.h>#include <util/alloc.h>#include <util/exit.h>#include <util/list.h>Go to the source code of this file.
Functions | |
| static void | free_attr (gmlattr *p) |
| static void | deparseList (attrs_t *alist, agxbuf *xb) |
| static void | deparseAttr (gmlattr *ap, agxbuf *xb) |
| static void | unknown (Agobj_t *obj, gmlattr *ap, agxbuf *xb) |
| static void | addNodeLabelGraphics (Agnode_t *np, attrs_t *alist, agxbuf *unk) |
| static void | addEdgeLabelGraphics (Agedge_t *ep, attrs_t *alist, agxbuf *xb, agxbuf *unk) |
| static void | addNodeGraphics (Agnode_t *np, attrs_t *alist, agxbuf *xb, agxbuf *unk) |
| static void | addEdgePoint (Agedge_t *ep, attrs_t *alist, agxbuf *xb) |
| static void | addEdgePos (Agedge_t *ep, attrs_t *alist, agxbuf *xb) |
| static void | addEdgeGraphics (Agedge_t *ep, attrs_t *alist, agxbuf *xb, agxbuf *unk) |
| static void | addAttrs (Agobj_t *obj, attrs_t *alist, agxbuf *xb, agxbuf *unk) |
| static Agraph_t * | mkGraph (gmlgraph *graph, Agraph_t *parent, char *name, agxbuf *xb, agxbuf *unk) |
| Agraph_t * | gml_to_gv (char *name, FILE *fp, int cnt, int *errors) |
| static char * | sortToStr (unsigned short sort) |
Variables | |
| require define api | prefix |
| hdr | __pad0__ |
| body | __pad1__ |
| optglist | __pad2__ |
| glist | __pad3__ |
| glistitem | __pad4__ |
| glistitem | $1 |
| edge { LIST_APPEND(&G->edgelist, $1) | |
| hdr body DIRECTED | INTEGER |
| node | __pad5__ |
| N = NULL | |
| nlist | __pad6__ |
| nlistitem | __pad7__ |
| alistitem { LIST_APPEND(&N->attrlist, $1) | |
| edge | __pad8__ |
| E = NULL | |
| elist | __pad9__ |
| elistitem | __pad10__ |
| attrlist | __pad11__ |
| optalist { $$ = popAlist() | |
| optalist | __pad12__ |
| alist | __pad13__ |
| alist | $2 |
| alistitem | __pad14__ |
| alistitem NAME | REAL { $$ = mkAttr ($1, 0, REAL, $2, 0) |
| NAME | STRING { $$ = mkAttr ($1, 0, STRING, $2, 0) |
| NAME | attrlist { $$ = mkAttr ($1, 0, GML_LIST, 0, $2) |
Definition at line 603 of file gmlparse.y.
References addEdgeGraphics(), addEdgeLabelGraphics(), addNodeGraphics(), addNodeLabelGraphics(), AGEDGE, AGNODE, AGTYPE, GRAPHICS, LABELGRAPHICS, LIST_GET, LIST_SIZE, gmlattr::lp, gmlattr::sort, gmlattr::u, and unknown.
Referenced by mkGraph().
Definition at line 566 of file gmlparse.y.
References addEdgePos(), agsafeset(), agxbclear(), agxbput(), agxbputc(), agxbuse(), cnt(), deparseAttr(), FILL, LINE, LIST_GET, LIST_SIZE, gmlattr::lp, NULL, gmlattr::sort, STYLE, gmlattr::u, gmlattr::value, and WIDTH.
Referenced by addAttrs().
|
static |
Definition at line 415 of file gmlparse.y.
References agsafeset(), agxbclear(), agxbprint(), agxbput(), agxbputc(), agxbuse(), cnt(), COLOR, deparseAttr(), FONTNAME, FONTSIZE, LIST_GET, LIST_SIZE, gmlattr::sort, TEXT, gmlattr::u, gmlattr::value, XVAL, and YVAL.
Referenced by addAttrs().
Definition at line 529 of file gmlparse.y.
References agxblen(), agxbprint(), agxbputc(), LIST_GET, LIST_SIZE, NULL, gmlattr::sort, gmlattr::u, unknown, gmlattr::value, XVAL, and YVAL.
Referenced by addEdgePos().
Definition at line 551 of file gmlparse.y.
References addEdgePoint(), agsafeset(), agxbuse(), LIST_GET, LIST_SIZE, gmlattr::lp, POINT, gmlattr::sort, gmlattr::u, and unknown.
Referenced by addEdgeGraphics().
Definition at line 466 of file gmlparse.y.
References agsafeset(), agxbclear(), agxbprint(), agxbput(), agxbputc(), agxbuse(), cnt(), deparseAttr(), FILL, HVAL, LIST_GET, LIST_SIZE, NULL, OUTLINE, OUTLINESTYLE, OUTLINEWIDTH, gmlattr::sort, STYLE, TYPE, gmlattr::u, gmlattr::value, WIDTH, WVAL, XVAL, and YVAL.
Referenced by addAttrs().
Definition at line 376 of file gmlparse.y.
References agsafeset(), agxbclear(), agxbput(), agxbputc(), agxbuse(), cnt(), COLOR, deparseAttr(), FONTNAME, FONTSIZE, LIST_GET, LIST_SIZE, gmlattr::sort, TEXT, gmlattr::u, and gmlattr::value.
Referenced by addAttrs().
Definition at line 336 of file gmlparse.y.
References agxbprint(), deparseList(), GML_LIST, gmlattr::kind, gmlattr::lp, gmlattr::name, STRING, gmlattr::u, and gmlattr::value.
Referenced by addEdgeGraphics(), addEdgeLabelGraphics(), addNodeGraphics(), addNodeLabelGraphics(), and deparseList().
|
static |
Definition at line 350 of file gmlparse.y.
References agxbput(), agxbputc(), deparseAttr(), LIST_GET, LIST_SIZE, and NULL.
Referenced by deparseAttr(), and unknown().
|
static |
Definition at line 323 of file gmlparse.y.
References free(), free_attrs(), GML_LIST, gmlattr::kind, gmlattr::lp, gmlattr::name, gmlattr::u, and gmlattr::value.
| Agraph_t * gml_to_gv | ( | char * | name, |
| FILE * | fp, | ||
| int | cnt, | ||
| int * | errors | ||
| ) |
Definition at line 681 of file gmlparse.y.
References agxbfree(), cleanup(), cnt(), error, errors, G, G, gmlerrors(), gmlparse(), initgmlscan(), L, mkGraph(), mkGraph(), NULL, and pushAlist().
Referenced by main().
|
static |
Definition at line 627 of file gmlparse.y.
References addAttrs(), Agdirected, agedge(), agnode(), agopen(), agsubg(), Agundirected, gmlnode::attrlist, gmledge::attrlist, graph(), graphviz_exit(), gmlnode::id, L, LIST_GET, LIST_SIZE, mkGraph(), NULL, parent, gmledge::source, and gmledge::target.
Referenced by gml_to_gv(), and mkGraph().
|
static |
Definition at line 712 of file gmlparse.y.
References COLOR, DIRECTED, EDGE, FILL, FONTNAME, FONTSIZE, GML_LIST, GRAPH, GRAPHICS, HVAL, ID, INTEGER, LABEL, LABELGRAPHICS, LINE, NAME, NODE, NULL, OUTLINE, OUTLINESTYLE, OUTLINEWIDTH, POINT, REAL, SOURCE, STRING, STYLE, TARGET, TEXT, TYPE, WIDTH, WVAL, XVAL, and YVAL.
Definition at line 362 of file gmlparse.y.
References agsafeset(), agxbuse(), deparseList(), GML_LIST, gmlattr::kind, gmlattr::lp, gmlattr::name, str, gmlattr::u, and gmlattr::value.
| cell $1 |
Definition at line 243 of file gmlparse.y.
Referenced by if().
| attrstmt $2 |
Definition at line 288 of file gmlparse.y.
Referenced by if().
| hdr __pad0__ |
Definition at line 229 of file gmlparse.y.
| elistitem __pad10__ |
Definition at line 275 of file gmlparse.y.
| attrlist __pad11__ |
Definition at line 281 of file gmlparse.y.
| optalist __pad12__ |
Definition at line 284 of file gmlparse.y.
| alist __pad13__ |
Definition at line 288 of file gmlparse.y.
| alistitem __pad14__ |
Definition at line 292 of file gmlparse.y.
| body __pad1__ |
Definition at line 232 of file gmlparse.y.
| optglist __pad2__ |
Definition at line 235 of file gmlparse.y.
| glist __pad3__ |
Definition at line 239 of file gmlparse.y.
| glistitem __pad4__ |
Definition at line 243 of file gmlparse.y.
| node __pad5__ |
Definition at line 257 of file gmlparse.y.
| nlist __pad6__ |
Definition at line 260 of file gmlparse.y.
| nlistitem __pad7__ |
Definition at line 264 of file gmlparse.y.
| edge __pad8__ |
Definition at line 268 of file gmlparse.y.
| elist __pad9__ |
Definition at line 271 of file gmlparse.y.
| alistitem { LIST_APPEND(&N->attrlist, $1) |
Definition at line 265 of file gmlparse.y.
Definition at line 295 of file gmlparse.y.
| E = NULL |
Definition at line 268 of file gmlparse.y.
| edge { LIST_APPEND(&G->edgelist, $1) |
Definition at line 244 of file gmlparse.y.
Referenced by agdeledgeimage(), edge(), edge(), edge(), edge(), emit_edge(), export_dot(), find_shortest_cycle_with_edge(), genBundleColors(), genBundleInfo(), genBundleSpline(), get_cycle_centroid(), getEdgeHead(), getEdgeLength(), getEdgeTail(), initHeap(), insert(), LIST(), my_init_edge(), and pedge_export_gv().
| FONTSIZE INTEGER |
Definition at line 246 of file gmlparse.y.
Referenced by sortToStr().
| N = NULL |
Definition at line 257 of file gmlparse.y.
| optalist { $$ = popAlist() |
Definition at line 281 of file gmlparse.y.
| require define api prefix |
Definition at line 17 of file gmlparse.y.
Referenced by create_filtered_list(), errorv(), filter_attributes(), fullColor(), picfontname(), printdouble(), printint(), printstring(), startswith(), try_reserve(), xdot_str_color(), and xdot_str_color_xbuf().
Definition at line 293 of file gmlparse.y.
Referenced by sortToStr().
Definition at line 294 of file gmlparse.y.
Referenced by deparseAttr(), and sortToStr().