Graphviz 13.1.2~dev.20250725.0048
Loading...
Searching...
No Matches
digcola.h
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#pragma once
12
13#ifdef __cplusplus
14extern "C" {
15#endif
16
17#include <neatogen/defs.h>
18
19#if !defined(__CYGWIN__) && defined(__GNUC__) && !defined(__MINGW32__)
20#define INTERNAL __attribute__((visibility("hidden")))
21#else
22#define INTERNAL /* nothing */
23#endif
24
25#ifdef DIGCOLA
26INTERNAL int compute_y_coords(vtx_data*, int, double*, int);
27INTERNAL int compute_hierarchy(vtx_data*, int, double, double,
28 double*, int**, int**, int*);
29INTERNAL int IMDS_given_dim(vtx_data*, int, double*, double*, double);
30INTERNAL int stress_majorization_with_hierarchy(vtx_data*, int, double**,
31 node_t**, int, int, int, int, double);
32#ifdef IPSEPCOLA
33typedef struct ipsep_options {
34 int diredges; /* 1=generate directed edge constraints */
35 /* 2=generate directed hierarchy level constraints (DiG-CoLa) */
36 double edge_gap; /* amount to force vertical separation of */
37 /* start/end nodes */
38 int noverlap; /* 1=generate non-overlap constraints */
39 /* 2=remove overlaps after layout */
40 pointf gap; /* hor and vert gap to enforce when removing overlap*/
41 pointf* nsize; /* node widths and heights */
42 cluster_data clusters;
43 /* list of node indices for each cluster */
44} ipsep_options;
45
46 /* stress majorization, for Constraint Layout */
47INTERNAL int stress_majorization_cola(vtx_data*, int, double**, node_t**, int, int, int, ipsep_options*);
48#endif
49#endif
50
51#undef INTERNAL
52
53#ifdef __cplusplus
54}
55#endif
#define INTERNAL
Definition digcola.h:22