Graphviz
2.41.20171026.1811
|
#include "config.h"
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
#include <ctype.h>
#include <dbg.h>
#include <grid.h>
#include <neato.h>
#include "tlayout.h"
#include "globals.h"
Go to the source code of this file.
Data Structures | |
struct | parms_t |
Macros | |
#define | FDP_PRIVATE 1 |
#define | srand48 srand |
#define | D_useGrid (fdp_parms->useGrid) |
#define | D_useNew (fdp_parms->useNew) |
#define | D_numIters (fdp_parms->numIters) |
#define | D_unscaled (fdp_parms->unscaled) |
#define | D_C (fdp_parms->C) |
#define | D_Tfact (fdp_parms->Tfact) |
#define | D_K (fdp_parms->K) |
#define | D_T0 (fdp_parms->T0) |
#define | T_useGrid (parms.useGrid) |
#define | T_useNew (parms.useNew) |
#define | T_seed (parms.seed) |
#define | T_numIters (parms.numIters) |
#define | T_maxIters (parms.maxIters) |
#define | T_unscaled (parms.unscaled) |
#define | T_C (parms.C) |
#define | T_Tfact (parms.Tfact) |
#define | T_K (parms.K) |
#define | T_T0 (parms.T0) |
#define | T_smode (parms.smode) |
#define | T_Cell (parms.Cell) |
#define | T_Cell2 (parms.Cell2) |
#define | T_K2 (parms.K2) |
#define | T_Wd (parms.Wd) |
#define | T_Ht (parms.Ht) |
#define | T_Wd2 (parms.Wd2) |
#define | T_Ht2 (parms.Ht2) |
#define | T_pass1 (parms.pass1) |
#define | T_loopcnt (parms.loopcnt) |
#define | EXPFACTOR 1.2 |
#define | DFLT_maxIters 600 |
#define | DFLT_K 0.3 |
#define | DFLT_Cell 0.0 |
#define | DFLT_seed 1 |
#define | DFLT_smode INIT_RANDOM |
#define | FLOOR(d) ((int)floor(d)) |
Functions | |
double | drand48 (void) |
void | fdp_initParams (graph_t *g) |
void | dumpstat (graph_t *g) |
void | fdp_tLayout (graph_t *g, xparams *xpms) |
Definition at line 60 of file tlayout.c.
Referenced by fdp_initParams().
#define D_K (fdp_parms->K) |
Definition at line 62 of file tlayout.c.
Referenced by fdp_initParams().
#define D_numIters (fdp_parms->numIters) |
Definition at line 58 of file tlayout.c.
Referenced by fdp_initParams().
#define D_T0 (fdp_parms->T0) |
Definition at line 63 of file tlayout.c.
Referenced by fdp_initParams().
#define D_Tfact (fdp_parms->Tfact) |
Definition at line 61 of file tlayout.c.
Referenced by fdp_initParams().
#define D_unscaled (fdp_parms->unscaled) |
Definition at line 59 of file tlayout.c.
Referenced by fdp_initParams().
#define D_useGrid (fdp_parms->useGrid) |
Definition at line 56 of file tlayout.c.
Referenced by fdp_initParams().
#define D_useNew (fdp_parms->useNew) |
Definition at line 57 of file tlayout.c.
Referenced by fdp_initParams().
#define DFLT_Cell 0.0 |
Definition at line 117 of file tlayout.c.
Referenced by fdp_initParams().
#define DFLT_K 0.3 |
Definition at line 116 of file tlayout.c.
Referenced by fdp_initParams().
#define DFLT_maxIters 600 |
Definition at line 115 of file tlayout.c.
Referenced by fdp_initParams().
#define DFLT_seed 1 |
Definition at line 118 of file tlayout.c.
Referenced by fdp_initParams().
#define DFLT_smode INIT_RANDOM |
Definition at line 119 of file tlayout.c.
Referenced by fdp_initParams().
#define T_C (parms.C) |
Definition at line 99 of file tlayout.c.
Referenced by fdp_initParams().
#define T_Cell (parms.Cell) |
Definition at line 104 of file tlayout.c.
Referenced by fdp_initParams().
#define T_Cell2 (parms.Cell2) |
Definition at line 105 of file tlayout.c.
Referenced by fdp_initParams().
#define T_K (parms.K) |
Definition at line 101 of file tlayout.c.
Referenced by fdp_initParams().
#define T_K2 (parms.K2) |
Definition at line 106 of file tlayout.c.
Referenced by fdp_initParams().
#define T_loopcnt (parms.loopcnt) |
Definition at line 112 of file tlayout.c.
Referenced by fdp_tLayout().
#define T_maxIters (parms.maxIters) |
Definition at line 97 of file tlayout.c.
Referenced by fdp_initParams().
#define T_numIters (parms.numIters) |
Definition at line 96 of file tlayout.c.
Referenced by fdp_initParams().
#define T_seed (parms.seed) |
Definition at line 95 of file tlayout.c.
Referenced by fdp_initParams().
#define T_smode (parms.smode) |
Definition at line 103 of file tlayout.c.
Referenced by fdp_initParams().
#define T_T0 (parms.T0) |
Definition at line 102 of file tlayout.c.
Referenced by fdp_initParams(), and fdp_tLayout().
#define T_Tfact (parms.Tfact) |
Definition at line 100 of file tlayout.c.
Referenced by fdp_initParams().
#define T_unscaled (parms.unscaled) |
Definition at line 98 of file tlayout.c.
Referenced by fdp_initParams().
#define T_useGrid (parms.useGrid) |
Definition at line 93 of file tlayout.c.
Referenced by fdp_initParams(), and fdp_tLayout().
#define T_useNew (parms.useNew) |
Definition at line 94 of file tlayout.c.
Referenced by fdp_initParams().
void dumpstat | ( | graph_t * | g | ) |
Definition at line 633 of file tlayout.c.
References agfstnode(), agfstout(), aghead(), agnameof(), agnxtnode(), agnxtout(), and ND_pos.
void fdp_initParams | ( | graph_t * | g | ) |
Definition at line 181 of file tlayout.c.
References agattr(), agerr(), agnameof(), AGRAPH, AGWARN, D_C, D_K, D_numIters, D_T0, D_Tfact, D_unscaled, D_useGrid, D_useNew, DFLT_Cell, DFLT_K, DFLT_maxIters, DFLT_seed, DFLT_smode, INIT_SELF, late_double(), late_int(), NULL, setSeed(), T_C, T_Cell, T_Cell2, T_K, T_K2, T_maxIters, T_numIters, T_seed, T_smode, T_T0, T_Tfact, T_unscaled, T_useGrid, T_useNew, and Verbose.
Definition at line 664 of file tlayout.c.
References adjustGrid(), agfstnode(), agnnodes(), agnxtnode(), delGrid(), mkGrid(), ND_pos, T_loopcnt, T_T0, T_useGrid, pointf_s::x, and pointf_s::y.