/*************************************************************************
 * Copyright (c) 2011 AT&T Intellectual Property 
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v2.0
 * which accompanies this distribution, and is available at
 * https://www.eclipse.org/org/documents/epl-2.0/EPL-2.0.html
 *
 * Contributors: Details at https://graphviz.org
 *************************************************************************/

#pragma once

#include <util/api.h>

#ifdef __cplusplus
extern "C" {
#endif

#include <neatogen/defs.h>

#ifdef DIGCOLA
PRIVATE int compute_y_coords(vtx_data*, int, double*, int);
PRIVATE int compute_hierarchy(vtx_data*, int, double, double, 
                         double*, int**, int**, int*); 
PRIVATE int IMDS_given_dim(vtx_data*, int, double*, double*, double);
PRIVATE int stress_majorization_with_hierarchy(vtx_data*, int, double**, 
                                              node_t**, int, int, int, int, double);
#ifdef IPSEPCOLA
typedef struct ipsep_options {
    int diredges;       /* 1=generate directed edge constraints */
                        /* 2=generate directed hierarchy level constraints (DiG-CoLa) */
    double edge_gap;    /* amount to force vertical separation of */
                        /* start/end nodes */
    int noverlap;       /* 1=generate non-overlap constraints */
                        /* 2=remove overlaps after layout */
    pointf gap;         /* hor and vert gap to enforce when removing overlap*/
    pointf* nsize;      /* node widths and heights */
    cluster_data clusters;
                        /* list of node indices for each cluster */
} ipsep_options;

 /* stress majorization, for Constraint Layout */
PRIVATE int stress_majorization_cola(vtx_data*, int, double**, node_t**, int, int, int, ipsep_options*);
#endif
#endif

#ifdef __cplusplus
}
#endif
