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
10
typedef
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
20
typedef
LIST
(
gmlattr
*) attrs_t;
21
22
typedef
struct
{
23
char
*
id
;
24
attrs_t
attrlist
;
25
}
gmlnode
;
26
27
typedef
struct
{
28
char
*
source
;
29
char
*
target
;
30
attrs_t
attrlist
;
31
}
gmledge
;
32
33
typedef
struct
gmlgraph
{
34
struct
gmlgraph
*
parent
;
35
int
directed
;
36
attrs_t
attrlist
;
37
LIST
(
gmlnode
*) nodelist;
38
LIST
(
gmledge
*)
edgelist
;
39
LIST
(
struct
gmlgraph
*) graphlist;
40
}
gmlgraph
;
41
42
extern
int
gmllex
(
void
);
43
extern
void
gmllexeof
(
void
);
44
extern
void
gmlerror
(
const
char
*);
45
extern
int
gmlerrors
(
void
);
46
extern
void
initgmlscan
(FILE*);
47
extern
Agraph_t
*
gml_to_gv
(
char
*, FILE*,
int
,
int
*);
cgraph.h
abstract graph C library, Cgraph API
edgelist
Dt_t edgelist
Definition
edgelist.h:24
gmlerrors
int gmlerrors(void)
Definition
gmlscan.l:121
gmlerror
void gmlerror(const char *)
Definition
gmlscan.l:113
initgmlscan
void initgmlscan(FILE *)
Definition
gmlscan.c:850
gml_to_gv
Agraph_t * gml_to_gv(char *, FILE *, int, int *)
Definition
gmlparse.c:2246
gmllexeof
void gmllexeof(void)
Definition
gmlscan.l:126
gmllex
int gmllex(void)
list.h
type-generic dynamically expanding list
LIST
#define LIST(type)
Definition
list.h:55
Agraph_s
graph or subgraph
Definition
cgraph.h:424
gmlattr
Definition
gml2gv.h:10
gmlattr::lp
void * lp
actually an attrs_t *
Definition
gml2gv.h:16
gmlattr::value
char * value
Definition
gml2gv.h:15
gmlattr::kind
unsigned short kind
Definition
gml2gv.h:11
gmlattr::sort
unsigned short sort
Definition
gml2gv.h:12
gmlattr::name
char * name
Definition
gml2gv.h:13
gmledge
Definition
gml2gv.h:27
gmledge::source
char * source
Definition
gml2gv.h:28
gmledge::attrlist
attrs_t attrlist
Definition
gml2gv.h:30
gmledge::target
char * target
Definition
gml2gv.h:29
gmlgraph
Definition
gml2gv.h:33
gmlgraph::directed
int directed
Definition
gml2gv.h:35
gmlgraph::LIST
LIST(struct gmlgraph *) graphlist
gmlgraph::parent
struct gmlgraph * parent
Definition
gml2gv.h:34
gmlgraph::LIST
LIST(gmledge *) edgelist
gmlgraph::LIST
LIST(gmlnode *) nodelist
gmlgraph::attrlist
attrs_t attrlist
Definition
gml2gv.h:36
gmlnode
Definition
gml2gv.h:22
gmlnode::attrlist
attrs_t attrlist
Definition
gml2gv.h:24
gmlnode::id
char * id
Definition
gml2gv.h:23
cmd
tools
gml2gv.h
Generated by
1.9.8