Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
gvlayout_neato_layout.c
Go to the documentation of this file.
1/*************************************************************************
2 * Copyright (c) 2011 AT&T Intellectual Property
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * https://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors: Details at https://graphviz.org
9 *************************************************************************/
10
11#include "config.h"
12
13#include <stdio.h>
14
15#include <gvc/gvplugin_layout.h>
16
17// FIXME - globals.h is needed for Nop
18#include <common/globals.h>
19
31
32extern void neato_layout(graph_t *g);
33extern void fdp_layout(graph_t *g);
34extern void sfdp_layout(graph_t *g);
35extern void twopi_layout(graph_t *g);
36extern void circo_layout(graph_t *g);
37extern void patchwork_layout(graph_t *g);
38extern void osage_layout(graph_t *g);
39
40extern void neato_cleanup(graph_t *g);
41extern void fdp_cleanup(graph_t *g);
42extern void sfdp_cleanup(graph_t *g);
43extern void twopi_cleanup(graph_t *g);
44extern void circo_cleanup(graph_t *g);
45extern void patchwork_cleanup(graph_t *g);
46extern void osage_cleanup(graph_t *g);
47
48static void nop1_layout(graph_t *g) {
49 Nop = 1;
50 neato_layout(g);
51 Nop = 0;
52}
53
54static void nop2_layout(graph_t *g) {
55 Nop = 2;
56 neato_layout(g);
57 Nop = 0;
58}
59
64
69
70#ifdef SFDP
71gvlayout_engine_t sfdpgen_engine = {
74};
75#endif
76
81
86
91
96
101
106
110
114#ifdef SFDP
115 {LAYOUT_SFDP, "sfdp", 0, &sfdpgen_engine, &neatogen_features},
116#endif
124 {0, NULL, 0, NULL, NULL}};
int Nop
Definition globals.h:54
node NULL
Definition grammar.y:163
void sfdp_cleanup(graph_t *g)
Definition sfdpinit.c:301
void osage_cleanup(graph_t *g)
Definition osageinit.c:370
void osage_layout(graph_t *g)
Definition osageinit.c:335
gvlayout_engine_t nop2gen_engine
void neato_layout(graph_t *g)
Definition neatoinit.c:1395
void patchwork_cleanup(graph_t *g)
void fdp_layout(graph_t *g)
Definition layout.c:1082
gvlayout_engine_t osage_engine
@ LAYOUT_PATCHWORK
@ LAYOUT_CLUSTER
void sfdp_layout(graph_t *g)
Definition sfdpinit.c:228
gvlayout_engine_t fdpgen_engine
void fdp_cleanup(graph_t *g)
Definition fdpinit.c:143
gvlayout_engine_t twopigen_engine
gvlayout_engine_t neatogen_engine
void twopi_cleanup(graph_t *g)
Definition twopiinit.c:180
gvlayout_engine_t patchwork_engine
void patchwork_layout(graph_t *g)
void circo_layout(graph_t *g)
gvlayout_engine_t circogen_engine
void neato_cleanup(graph_t *g)
Definition neatoinit.c:155
static void nop2_layout(graph_t *g)
void circo_cleanup(graph_t *g)
ND_alg is freed in circo_layout.
gvplugin_installed_t gvlayout_neato_types[]
gvlayout_features_t neatogen_features
gvlayout_engine_t nop1gen_engine
void twopi_layout(graph_t *g)
Definition twopiinit.c:75
static void nop1_layout(graph_t *g)
graph or subgraph
Definition cgraph.h:425
ingroup plugin_api
Definition gvplugin.h:35