/misc/src/release/graphviz-2.18-1/src/graphviz-2.18/lib/neatogen/stress.h

Go to the documentation of this file.
00001 /* $Id: stress.h,v 1.2 2005/07/13 20:29:40 erg Exp $ $Revision: 1.2 $ */
00002 /* vim:set shiftwidth=4 ts=8: */
00003 
00004 /**********************************************************
00005 *      This software is part of the graphviz package      *
00006 *                http://www.graphviz.org/                 *
00007 *                                                         *
00008 *            Copyright (c) 1994-2004 AT&T Corp.           *
00009 *                and is licensed under the                *
00010 *            Common Public License, Version 1.0           *
00011 *                      by AT&T Corp.                      *
00012 *                                                         *
00013 *        Information and Software Systems Research        *
00014 *              AT&T Research, Florham Park NJ             *
00015 **********************************************************/
00016 
00017 #ifdef __cplusplus
00018 extern "C" {
00019 #endif
00020 
00021 
00022 #ifndef STRESS_H
00023 #define STRESS_H
00024 
00025 #include "defs.h"
00026 
00027 #define tolerance_cg 1e-3
00028 
00029 #define DFLT_ITERATIONS 200
00030 
00031 #define DFLT_TOLERANCE 1e-4
00032 
00033     /* some possible values for 'num_pivots_stress' */
00034 #define num_pivots_stress 40
00035 #define num_pivots_smart_ini   0
00036 #define num_pivots_no_ini   50
00037 
00038     /* relevant when using sparse distance matrix
00039      * when optimizing within subspace it can be set to 0
00040      * otherwise, recommended value is above zero (usually around 3-6)
00041      * some possible values for 'neighborhood_radius'
00042      */
00043 #define neighborhood_radius_unrestricted  4
00044 #define neighborhood_radius_subspace 0
00045 
00046 
00047     /* Full dense stress optimization (equivalent to Kamada-Kawai's energy) */
00048     /* Slowest and most accurate optimization */
00049     extern int stress_majorization_kD_mkernel(vtx_data * graph, /* Input graph in sparse representation */
00050                                               int n,    /* Number of nodes */
00051                                               int nedges_graph, /* Number of edges */
00052                                               double **coords,  /* coordinates of nodes (output layout)  */
00053                                               int dim,  /* dimemsionality of layout */
00054                                               int smart_ini,    /* smart initialization */
00055                                               int model,        /* model */
00056                                               int maxi  /* max iterations */
00057         );
00058 
00059 extern float *compute_apsp_packed(vtx_data * graph, int n);
00060 extern float *compute_apsp_artifical_weights_packed(vtx_data * graph, int n);
00061 extern float* circuitModel(vtx_data * graph, int nG);
00062 extern int initLayout(vtx_data * graph, int n, int dim, double **coords);
00063 
00064 #endif
00065 
00066 #ifdef __cplusplus
00067 }
00068 #endif

Generated on Mon Mar 31 19:03:28 2008 for Graphviz by  doxygen 1.5.1