Debian Codegraph @

lib/neatogen/digcola.h

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