Graphviz 13.1.2~dev.20250723.2326
Loading...
Searching...
No Matches
stress.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 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#ifdef __cplusplus
14extern "C" {
15#endif
16
17#include <neatogen/defs.h>
18
19#if !defined(__CYGWIN__) && defined(__GNUC__) && !defined(__MINGW32__)
20#define INTERNAL __attribute__((visibility("hidden")))
21#else
22#define INTERNAL /* nothing */
23#endif
24
25#define tolerance_cg 1e-3
26
27#define DFLT_ITERATIONS 200
28
29#define DFLT_TOLERANCE 1e-4
30
31 /* some possible values for 'num_pivots_stress' */
32#define num_pivots_stress 40
33
34#define opt_smart_init 0x4
35#define opt_exp_flag 0x3
36
37 /* Full dense stress optimization (equivalent to Kamada-Kawai's energy) */
38 /* Slowest and most accurate optimization */
39INTERNAL int stress_majorization_kD_mkernel(vtx_data * graph, /* Input graph in sparse representation */
40 int n, /* Number of nodes */
41 double **coords, /* coordinates of nodes (output layout) */
42 node_t **nodes, /* original nodes */
43 int dim, /* dimemsionality of layout */
44 int opts, /* option flags */
45 int model, /* model */
46 int maxi /* max iterations */
47 );
48
51INTERNAL float* circuitModel(vtx_data * graph, int nG);
52INTERNAL float* mdsModel (vtx_data * graph, int nG);
53INTERNAL int initLayout(int n, int dim, double **coords, node_t **nodes);
54
55#undef INTERNAL
56
57#ifdef __cplusplus
58}
59#endif
Agraph_t * graph(char *name)
Definition gv.cpp:30
static opts_t opts
Definition gvgen.c:401
static const int dim
#define INTERNAL
Definition stress.h:22
INTERNAL float * mdsModel(vtx_data *graph, int nG)
Definition stress.c:667
INTERNAL int stress_majorization_kD_mkernel(vtx_data *graph, int n, double **coords, node_t **nodes, int dim, int opts, int model, int maxi)
Definition stress.c:801
INTERNAL float * compute_apsp_packed(vtx_data *graph, int n)
Definition stress.c:700
INTERNAL float * circuitModel(vtx_data *graph, int nG)
Definition stress.c:168
INTERNAL int initLayout(int n, int dim, double **coords, node_t **nodes)
Definition stress.c:130
INTERNAL float * compute_apsp_artificial_weights_packed(vtx_data *graph, int n)
Definition stress.c:718