Graphviz 13.0.0~dev.20241220.2304
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#define tolerance_cg 1e-3
20
21#define DFLT_ITERATIONS 200
22
23#define DFLT_TOLERANCE 1e-4
24
25 /* some possible values for 'num_pivots_stress' */
26#define num_pivots_stress 40
27
28#define opt_smart_init 0x4
29#define opt_exp_flag 0x3
30
31 /* Full dense stress optimization (equivalent to Kamada-Kawai's energy) */
32 /* Slowest and most accurate optimization */
33 extern int stress_majorization_kD_mkernel(vtx_data * graph, /* Input graph in sparse representation */
34 int n, /* Number of nodes */
35 double **coords, /* coordinates of nodes (output layout) */
36 node_t **nodes, /* original nodes */
37 int dim, /* dimemsionality of layout */
38 int opts, /* option flags */
39 int model, /* model */
40 int maxi /* max iterations */
41 );
42
43extern float *compute_apsp_packed(vtx_data * graph, int n);
45extern float* circuitModel(vtx_data * graph, int nG);
46extern float* mdsModel (vtx_data * graph, int nG);
47extern int initLayout(int n, int dim, double **coords, node_t **nodes);
48
49#ifdef __cplusplus
50}
51#endif
Agraph_t * graph(char *name)
Definition gv.cpp:30
static opts_t opts
Definition gvgen.c:394
static const int dim
float * compute_apsp_artificial_weights_packed(vtx_data *graph, int n)
Definition stress.c:718
float * circuitModel(vtx_data *graph, int nG)
Definition stress.c:168
int initLayout(int n, int dim, double **coords, node_t **nodes)
Definition stress.c:130
float * mdsModel(vtx_data *graph, int nG)
Definition stress.c:667
float * compute_apsp_packed(vtx_data *graph, int n)
Definition stress.c:700
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