Graphviz 13.0.0~dev.20241220.2304
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#ifdef DIGCOLA
19extern int compute_y_coords(vtx_data*, int, double*, int);
20extern int compute_hierarchy(vtx_data*, int, double, double,
21 double*, int**, int**, int*);
22extern int IMDS_given_dim(vtx_data*, int, double*, double*, double);
23extern int stress_majorization_with_hierarchy(vtx_data*, int, double**,
24 node_t**, int, int, int, int, double);
25#ifdef IPSEPCOLA
26typedef struct ipsep_options {
27 int diredges; /* 1=generate directed edge constraints */
28 /* 2=generate directed hierarchy level constraints (DiG-CoLa) */
29 double edge_gap; /* amount to force vertical separation of */
30 /* start/end nodes */
31 int noverlap; /* 1=generate non-overlap constraints */
32 /* 2=remove overlaps after layout */
33 pointf gap; /* hor and vert gap to enforce when removing overlap*/
34 pointf* nsize; /* node widths and heights */
35 cluster_data clusters;
36 /* list of node indices for each cluster */
37} ipsep_options;
38
39 /* stress majorization, for Constraint Layout */
40extern int stress_majorization_cola(vtx_data*, int, double**, node_t**, int, int, int, ipsep_options*);
41#endif
42#endif
43
44#ifdef __cplusplus
45}
46#endif