Graphviz 15.1.1~dev.20260630.1303
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 v2.0
5 * which accompanies this distribution, and is available at
6 * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
7 *
8 * Contributors: Details at https://graphviz.org
9 *************************************************************************/
10
11#pragma once
12
13#include <stddef.h>
14#include <util/api.h>
15
16#ifdef __cplusplus
17extern "C" {
18#endif
19
20#include <neatogen/defs.h>
21
22#ifdef DIGCOLA
23PRIVATE int compute_y_coords(vtx_data*, int, double*, int);
24PRIVATE int compute_hierarchy(vtx_data *, int, double, double, double *, int **,
25 int **, size_t *);
26PRIVATE int IMDS_given_dim(vtx_data*, int, double*, double*, double);
27PRIVATE int stress_majorization_with_hierarchy(vtx_data*, int, double**,
28 node_t**, int, int, int, int, double);
29#ifdef IPSEPCOLA
30typedef struct ipsep_options {
31 int diredges; /* 1=generate directed edge constraints */
32 /* 2=generate directed hierarchy level constraints (DiG-CoLa) */
33 double edge_gap; /* amount to force vertical separation of */
34 /* start/end nodes */
35 int noverlap; /* 1=generate non-overlap constraints */
36 /* 2=remove overlaps after layout */
37 pointf gap; /* hor and vert gap to enforce when removing overlap*/
38 pointf* nsize; /* node widths and heights */
39 cluster_data clusters;
40 /* list of node indices for each cluster */
41} ipsep_options;
42
43 /* stress majorization, for Constraint Layout */
44PRIVATE int stress_majorization_cola(vtx_data*, int, double**, node_t**, int, int, int, ipsep_options*);
45#endif
46#endif
47
48#ifdef __cplusplus
49}
50#endif
macro for API hiding/exposing
#define PRIVATE
Definition api.h:16