Graphviz  2.29.20120523.0446
lib/neatogen/digcola.h
Go to the documentation of this file.
00001 /* $Id$ $Revision$ */
00002 /* vim:set shiftwidth=4 ts=8: */
00003 
00004 /*************************************************************************
00005  * Copyright (c) 2011 AT&T Intellectual Property 
00006  * All rights reserved. This program and the accompanying materials
00007  * are made available under the terms of the Eclipse Public License v1.0
00008  * which accompanies this distribution, and is available at
00009  * http://www.eclipse.org/legal/epl-v10.html
00010  *
00011  * Contributors: See CVS logs. Details at http://www.graphviz.org/
00012  *************************************************************************/
00013 
00014 #ifdef __cplusplus
00015 extern "C" {
00016 #endif
00017 
00018 #ifndef DIGCOLA_H
00019 #define DIGCOLA_H
00020 
00021 #include <defs.h>
00022 #ifdef DIGCOLA
00023 extern int compute_y_coords(vtx_data*, int, double*, int);
00024 extern int compute_hierarchy(vtx_data*, int, double, double, 
00025                                 double*, int**, int**, int*); 
00026 extern int IMDS_given_dim(vtx_data*, int, double*, double*, double);
00027 extern int stress_majorization_with_hierarchy(vtx_data*, int, int, double**, 
00028                                               node_t**, int, int, int, int, double);
00029 #ifdef IPSEPCOLA
00030 typedef struct ipsep_options {
00031     int diredges;       /* 1=generate directed edge constraints */
00032                         /* 2=generate directed hierarchy level constraints (DiG-CoLa) */
00033     double edge_gap;    /* amount to force vertical separation of */
00034                         /* start/end nodes */
00035     int noverlap;       /* 1=generate non-overlap constraints */
00036                         /* 2=remove overlaps after layout */
00037     pointf gap;         /* hor and vert gap to enforce when removing overlap*/
00038     pointf* nsize;      /* node widths and heights */
00039     cluster_data* clusters;
00040                         /* list of node indices for each cluster */
00041 #ifdef MOSEK
00042     int mosek;          /* use Mosek as constraint optimization engine */
00043 #endif /* MOSEK */
00044 } ipsep_options;
00045 
00046  /* stress majorization, for Constraint Layout */
00047 extern int stress_majorization_cola(vtx_data*, int, int, double**, node_t**, int, int, int, ipsep_options*);
00048 #endif
00049 #endif
00050 #endif
00051 
00052 #ifdef __cplusplus
00053 }
00054 #endif