Graphviz 12.0.1~dev.20240716.0800
|
#include <stdlib.h>
#include <string.h>
#include <arith.h>
#include <gml2gv.h>
#include <agxbuf.h>
#include <assert.h>
#include <cgraph/alloc.h>
#include <cgraph/exit.h>
#include <cgraph/stack.h>
Go to the source code of this file.
Functions | |
static void | free_attr (void *attr) |
static void | deparseList (Dt_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, Dt_t *alist, agxbuf *unk) |
static void | addEdgeLabelGraphics (Agedge_t *ep, Dt_t *alist, agxbuf *xb, agxbuf *unk) |
static void | addNodeGraphics (Agnode_t *np, Dt_t *alist, agxbuf *xb, agxbuf *unk) |
static void | addEdgePoint (Agedge_t *ep, Dt_t *alist, agxbuf *xb) |
static void | addEdgePos (Agedge_t *ep, Dt_t *alist, agxbuf *xb) |
static void | addEdgeGraphics (Agedge_t *ep, Dt_t *alist, agxbuf *xb, agxbuf *unk) |
static void | addAttrs (Agobj_t *obj, Dt_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 { dtinsert (G->edgelist, $1) | |
hdr body DIRECTED | INTEGER |
node | __pad5__ |
N = NULL | |
nlist | __pad6__ |
nlistitem | __pad7__ |
alistitem { dtinsert (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 651 of file gmlparse.y.
References addEdgeGraphics(), addEdgeLabelGraphics(), addNodeGraphics(), addNodeLabelGraphics(), AGEDGE, AGNODE, AGRAPH, agsafeset(), AGTYPE, dtfirst, dtnext, GRAPHICS, LABEL, LABELGRAPHICS, gmlattr::lp, gmlattr::sort, gmlattr::u, unknown, and gmlattr::value.
Referenced by mkGraph().
Definition at line 613 of file gmlparse.y.
References addEdgePos(), agsafeset(), agxbclear(), agxbput(), agxbputc(), agxbuse(), cnt(), deparseAttr(), dtfirst, dtnext, FILL, LINE, gmlattr::lp, gmlattr::sort, STYLE, gmlattr::u, gmlattr::value, and WIDTH.
Referenced by addAttrs().
Definition at line 455 of file gmlparse.y.
References agsafeset(), agxbclear(), agxbprint(), agxbput(), agxbputc(), agxbuse(), cnt(), COLOR, deparseAttr(), dtfirst, dtnext, FONTNAME, FONTSIZE, gmlattr::sort, TEXT, gmlattr::u, gmlattr::value, XVAL, and YVAL.
Referenced by addAttrs().
Definition at line 571 of file gmlparse.y.
References agxblen(), agxbprint(), agxbputc(), dtfirst, dtnext, gmlattr::sort, gmlattr::u, unknown, gmlattr::value, XVAL, and YVAL.
Referenced by addEdgePos().
Definition at line 595 of file gmlparse.y.
References addEdgePoint(), agsafeset(), agxbuse(), dtfirst, dtnext, gmlattr::lp, POINT, gmlattr::sort, gmlattr::u, and unknown.
Referenced by addEdgeGraphics().
Definition at line 507 of file gmlparse.y.
References agsafeset(), agxbclear(), agxbprint(), agxbput(), agxbputc(), agxbuse(), cnt(), deparseAttr(), dtfirst, dtnext, FILL, HVAL, OUTLINE, OUTLINESTYLE, OUTLINEWIDTH, gmlattr::sort, STYLE, TYPE, gmlattr::u, gmlattr::value, WIDTH, WVAL, XVAL, and YVAL.
Referenced by addAttrs().
Definition at line 415 of file gmlparse.y.
References agsafeset(), agxbclear(), agxbput(), agxbputc(), agxbuse(), cnt(), COLOR, deparseAttr(), dtfirst, dtnext, FONTNAME, FONTSIZE, gmlattr::sort, TEXT, gmlattr::u, and gmlattr::value.
Referenced by addAttrs().
Definition at line 372 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().
Definition at line 387 of file gmlparse.y.
References agxbput(), agxbputc(), deparseAttr(), dtfirst, and dtnext.
Referenced by deparseAttr(), and unknown().
|
static |
Definition at line 358 of file gmlparse.y.
References dtclose(), free(), 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 734 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 680 of file gmlparse.y.
References addAttrs(), Agdirected, agedge(), agnode(), agopen(), agsubg(), Agundirected, gmlnode::attrlist, gmledge::attrlist, dtfirst, dtnext, 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 765 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 401 of file gmlparse.y.
References agsafeset(), agxbuse(), deparseList(), gmlattr::kind, LIST, gmlattr::lp, gmlattr::name, str, gmlattr::u, and gmlattr::value.
glistitem $1 |
Definition at line 278 of file gmlparse.y.
Referenced by if().
attrstmt $2 |
Definition at line 323 of file gmlparse.y.
Referenced by if().
hdr __pad0__ |
Definition at line 264 of file gmlparse.y.
elistitem __pad10__ |
Definition at line 310 of file gmlparse.y.
attrlist __pad11__ |
Definition at line 316 of file gmlparse.y.
optalist __pad12__ |
Definition at line 319 of file gmlparse.y.
alist __pad13__ |
Definition at line 323 of file gmlparse.y.
alistitem __pad14__ |
Definition at line 327 of file gmlparse.y.
body __pad1__ |
Definition at line 267 of file gmlparse.y.
optglist __pad2__ |
Definition at line 270 of file gmlparse.y.
glist __pad3__ |
Definition at line 274 of file gmlparse.y.
glistitem __pad4__ |
Definition at line 278 of file gmlparse.y.
node __pad5__ |
Definition at line 292 of file gmlparse.y.
nlist __pad6__ |
Definition at line 295 of file gmlparse.y.
nlistitem __pad7__ |
Definition at line 299 of file gmlparse.y.
edge __pad8__ |
Definition at line 303 of file gmlparse.y.
elist __pad9__ |
Definition at line 306 of file gmlparse.y.
Definition at line 300 of file gmlparse.y.
Definition at line 330 of file gmlparse.y.
E = NULL |
Definition at line 303 of file gmlparse.y.
Definition at line 279 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_df6ccae4f7b80b45(), _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_df6ccae4f7b80b45(), _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_df6ccae4f7b80b45(), _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_df6ccae4f7b80b45(), cycle_contains_edge(), edge(), edge(), edge(), edge(), emit_edge(), export_dot(), find_shortest_cycle_with_edge(), free_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 281 of file gmlparse.y.
Referenced by sortToStr().
N = NULL |
Definition at line 292 of file gmlparse.y.
optalist { $$ = popAlist() |
Definition at line 316 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(), queue_push(), startswith(), and tclhandleInit().
Definition at line 328 of file gmlparse.y.
Referenced by sortToStr().
Definition at line 329 of file gmlparse.y.
Referenced by deparseAttr(), and sortToStr().