Graphviz 13.1.3~dev.20250829.0113
Loading...
Searching...
No Matches
gml2gv.h
Go to the documentation of this file.
1
6#include <stdio.h>
7#include <cgraph/cgraph.h>
8#include <util/list.h>
9
10typedef struct {
11 unsigned short kind;
12 unsigned short sort;
13 char* name;
14 union {
15 char* value;
16 void *lp;
17 }u;
18} gmlattr;
19
20typedef LIST(gmlattr *) attrs_t;
21
22typedef struct {
23 char* id;
24 attrs_t attrlist;
25} gmlnode;
26
27typedef struct {
28 char* source;
29 char* target;
30 attrs_t attrlist;
31} gmledge;
32
33typedef struct gmlgraph {
36 attrs_t attrlist;
37 LIST(gmlnode *) nodelist;
39 LIST(struct gmlgraph *) graphlist;
41
42extern int gmllex(void);
43extern void gmllexeof(void);
44extern void gmlerror(const char *);
45extern int gmlerrors(void);
46extern void initgmlscan (FILE*);
47extern Agraph_t* gml_to_gv (char*, FILE*, int, int*);
abstract graph C library, Cgraph API
Dt_t edgelist
Definition edgelist.h:24
int gmlerrors(void)
Definition gmlscan.l:121
void gmlerror(const char *)
Definition gmlscan.l:113
void initgmlscan(FILE *)
Definition gmlscan.c:850
Agraph_t * gml_to_gv(char *, FILE *, int, int *)
Definition gmlparse.c:2246
void gmllexeof(void)
Definition gmlscan.l:126
int gmllex(void)
type-generic dynamically expanding list
#define LIST(type)
Definition list.h:55
graph or subgraph
Definition cgraph.h:424
void * lp
actually an attrs_t *
Definition gml2gv.h:16
char * value
Definition gml2gv.h:15
unsigned short kind
Definition gml2gv.h:11
unsigned short sort
Definition gml2gv.h:12
char * name
Definition gml2gv.h:13
char * source
Definition gml2gv.h:28
attrs_t attrlist
Definition gml2gv.h:30
char * target
Definition gml2gv.h:29
int directed
Definition gml2gv.h:35
LIST(struct gmlgraph *) graphlist
struct gmlgraph * parent
Definition gml2gv.h:34
LIST(gmledge *) edgelist
LIST(gmlnode *) nodelist
attrs_t attrlist
Definition gml2gv.h:36
attrs_t attrlist
Definition gml2gv.h:24
char * id
Definition gml2gv.h:23