Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
dot.c
Go to the documentation of this file.
1
4
5/*************************************************************************
6 * Copyright (c) 2011 AT&T Intellectual Property
7 * All rights reserved. This program and the accompanying materials
8 * are made available under the terms of the Eclipse Public License v1.0
9 * which accompanies this distribution, and is available at
10 * https://www.eclipse.org/legal/epl-v10.html
11 *
12 * Contributors: Details at https://graphviz.org
13 *************************************************************************/
14
15#include <graphviz/gvc.h>
16#include <stddef.h>
17
18int main(int argc, char **argv) {
19 GVC_t *gvc = gvContext();
20 gvParseArgs(gvc, argc, argv);
21
22 graph_t *g, *prev = NULL;
23 while ((g = gvNextInputGraph(gvc))) {
24 if (prev) {
27 }
28 gvLayoutJobs(gvc, g);
29 gvRenderJobs(gvc, g);
30 prev = g;
31 }
32 return gvFreeContext(gvc);
33}
node NULL
Definition grammar.y:163
int agclose(Agraph_t *g)
deletes a graph, freeing its associated storage
Definition graph.c:102
int gvParseArgs(GVC_t *gvc, int argc, char **argv)
Definition args.c:220
graph_t * gvNextInputGraph(GVC_t *gvc)
Definition input.c:501
int gvFreeLayout(GVC_t *gvc, graph_t *g)
Definition gvlayout.c:105
GVC_t * gvContext(void)
Definition gvc.c:24
int gvRenderJobs(GVC_t *gvc, graph_t *g)
Definition emit.c:3893
int gvLayoutJobs(GVC_t *gvc, graph_t *g)
Definition gvlayout.c:53
int gvFreeContext(GVC_t *gvc)
Definition gvcontext.c:64
static GVC_t * gvc
Definition gv.cpp:23
$2 u p prev
Definition htmlparse.y:297
graph or subgraph
Definition cgraph.h:425
Definition gvcint.h:80
int main()