Graphviz 13.0.0~dev.20250402.0402
|
#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 | |
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 { edges_append(&G->edgelist, $1) | |
hdr body DIRECTED | INTEGER |
node | __pad5__ |
N = NULL | |
nlist | __pad6__ |
nlistitem | __pad7__ |
alistitem { attrs_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, LIST, 0, $2) |
Definition at line 598 of file gmlparse.y.
References addEdgeGraphics(), addEdgeLabelGraphics(), addNodeGraphics(), addNodeLabelGraphics(), AGEDGE, AGNODE, AGTYPE, GRAPHICS, LABELGRAPHICS, gmlattr::lp, gmlattr::sort, gmlattr::u, and unknown.
Referenced by mkGraph().
Definition at line 561 of file gmlparse.y.
References addEdgePos(), agsafeset(), agxbclear(), agxbput(), agxbputc(), agxbuse(), cnt(), deparseAttr(), FILL, LINE, gmlattr::lp, NULL, gmlattr::sort, STYLE, gmlattr::u, gmlattr::value, and WIDTH.
Referenced by addAttrs().
|
static |
Definition at line 410 of file gmlparse.y.
References agsafeset(), agxbclear(), agxbprint(), agxbput(), agxbputc(), agxbuse(), cnt(), COLOR, deparseAttr(), FONTNAME, FONTSIZE, gmlattr::sort, TEXT, gmlattr::u, gmlattr::value, XVAL, and YVAL.
Referenced by addAttrs().
Definition at line 524 of file gmlparse.y.
References agxblen(), agxbprint(), agxbputc(), NULL, gmlattr::sort, gmlattr::u, unknown, gmlattr::value, XVAL, and YVAL.
Referenced by addEdgePos().
Definition at line 546 of file gmlparse.y.
References addEdgePoint(), agsafeset(), agxbuse(), gmlattr::lp, POINT, gmlattr::sort, gmlattr::u, and unknown.
Referenced by addEdgeGraphics().
Definition at line 461 of file gmlparse.y.
References agsafeset(), agxbclear(), agxbprint(), agxbput(), agxbputc(), agxbuse(), cnt(), deparseAttr(), FILL, HVAL, NULL, OUTLINE, OUTLINESTYLE, OUTLINEWIDTH, gmlattr::sort, STYLE, TYPE, gmlattr::u, gmlattr::value, WIDTH, WVAL, XVAL, and YVAL.
Referenced by addAttrs().
Definition at line 371 of file gmlparse.y.
References agsafeset(), agxbclear(), agxbput(), agxbputc(), agxbuse(), cnt(), COLOR, deparseAttr(), FONTNAME, FONTSIZE, gmlattr::sort, TEXT, gmlattr::u, and gmlattr::value.
Referenced by addAttrs().
Definition at line 331 of file gmlparse.y.
References agxbprint(), deparseList(), gmlattr::kind, LIST, gmlattr::lp, gmlattr::name, STRING, gmlattr::u, and gmlattr::value.
Referenced by addEdgeGraphics(), addEdgeLabelGraphics(), addNodeGraphics(), addNodeLabelGraphics(), and deparseList().
|
static |
Definition at line 345 of file gmlparse.y.
References agxbput(), agxbputc(), deparseAttr(), and NULL.
Referenced by deparseAttr(), and unknown().
void free_attr | ( | gmlattr * | p | ) |
Definition at line 318 of file gmlparse.y.
References free(), free_attrs(), gmlattr::kind, LIST, 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 676 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 622 of file gmlparse.y.
References addAttrs(), Agdirected, agedge(), agnode(), agopen(), agsubg(), Agundirected, gmlnode::attrlist, gmledge::attrlist, graph(), graphviz_exit(), gmlnode::id, L, mkGraph(), NULL, parent, gmledge::source, and gmledge::target.
Referenced by gml_to_gv(), and mkGraph().
|
static |
Definition at line 707 of file gmlparse.y.
References COLOR, DIRECTED, EDGE, FILL, FONTNAME, FONTSIZE, GRAPH, GRAPHICS, HVAL, ID, INTEGER, LABEL, LABELGRAPHICS, LINE, LIST, NAME, NODE, NULL, OUTLINE, OUTLINESTYLE, OUTLINEWIDTH, POINT, REAL, SOURCE, STRING, STYLE, TARGET, TEXT, TYPE, WIDTH, WVAL, XVAL, and YVAL.
Definition at line 357 of file gmlparse.y.
References agsafeset(), agxbuse(), deparseList(), gmlattr::kind, LIST, gmlattr::lp, gmlattr::name, str, gmlattr::u, and gmlattr::value.
cell $1 |
Definition at line 238 of file gmlparse.y.
Referenced by if().
attrstmt $2 |
Definition at line 283 of file gmlparse.y.
Referenced by if().
hdr __pad0__ |
Definition at line 224 of file gmlparse.y.
elistitem __pad10__ |
Definition at line 270 of file gmlparse.y.
attrlist __pad11__ |
Definition at line 276 of file gmlparse.y.
optalist __pad12__ |
Definition at line 279 of file gmlparse.y.
alist __pad13__ |
Definition at line 283 of file gmlparse.y.
alistitem __pad14__ |
Definition at line 287 of file gmlparse.y.
body __pad1__ |
Definition at line 227 of file gmlparse.y.
optglist __pad2__ |
Definition at line 230 of file gmlparse.y.
glist __pad3__ |
Definition at line 234 of file gmlparse.y.
glistitem __pad4__ |
Definition at line 238 of file gmlparse.y.
node __pad5__ |
Definition at line 252 of file gmlparse.y.
nlist __pad6__ |
Definition at line 255 of file gmlparse.y.
nlistitem __pad7__ |
Definition at line 259 of file gmlparse.y.
edge __pad8__ |
Definition at line 263 of file gmlparse.y.
elist __pad9__ |
Definition at line 266 of file gmlparse.y.
Definition at line 260 of file gmlparse.y.
Definition at line 290 of file gmlparse.y.
E = NULL |
Definition at line 263 of file gmlparse.y.
Definition at line 239 of file gmlparse.y.
Referenced by _wrap_edge__SWIG_0(), _wrap_edge__SWIG_0(), _wrap_edge__SWIG_0(), _wrap_edge__SWIG_0(), _wrap_edge__SWIG_0(), _wrap_edge__SWIG_0_gv_f72e3b2553238da4(), _wrap_edge__SWIG_1(), _wrap_edge__SWIG_1(), _wrap_edge__SWIG_1(), _wrap_edge__SWIG_1(), _wrap_edge__SWIG_1(), _wrap_edge__SWIG_1_gv_f72e3b2553238da4(), _wrap_edge__SWIG_2(), _wrap_edge__SWIG_2(), _wrap_edge__SWIG_2(), _wrap_edge__SWIG_2(), _wrap_edge__SWIG_2(), _wrap_edge__SWIG_2_gv_f72e3b2553238da4(), _wrap_edge__SWIG_3(), _wrap_edge__SWIG_3(), _wrap_edge__SWIG_3(), _wrap_edge__SWIG_3(), _wrap_edge__SWIG_3(), _wrap_edge__SWIG_3_gv_f72e3b2553238da4(), cycle_contains_edge(), edge(), edge(), edge(), edge(), emit_edge(), export_dot(), find_shortest_cycle_with_edge(), genBundleColors(), genBundleInfo(), genBundleSpline(), get_cycle_centroid(), getEdgeHead(), getEdgeLength(), getEdgeTail(), initHeap(), insert(), my_init_edge(), pedge_export_gv(), XS(), XS(), XS(), XS(), ZEND_NAMED_FUNCTION(), ZEND_NAMED_FUNCTION(), ZEND_NAMED_FUNCTION(), and ZEND_NAMED_FUNCTION().
FONTSIZE INTEGER |
Definition at line 241 of file gmlparse.y.
Referenced by sortToStr().
N = NULL |
Definition at line 252 of file gmlparse.y.
optalist { $$ = popAlist() |
Definition at line 276 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(), xdot_str_color(), and xdot_str_color_xbuf().
Definition at line 288 of file gmlparse.y.
Referenced by sortToStr().
Definition at line 289 of file gmlparse.y.
Referenced by deparseAttr(), and sortToStr().