Graphviz 13.0.0~dev.20241220.2304
|
#include "config.h"
#include <float.h>
#include <limits.h>
#include <sfdpgen/sfdp.h>
#include <neatogen/neato.h>
#include <neatogen/adjust.h>
#include <pack/pack.h>
#include <assert.h>
#include <sfdpgen/spring_electrical.h>
#include <neatogen/overlap.h>
#include <sfdpgen/stress_model.h>
#include <cgraph/cgraph.h>
#include <stdbool.h>
#include <stddef.h>
#include <util/alloc.h>
#include <util/gv_ctype.h>
#include <util/strcasecmp.h>
Go to the source code of this file.
Functions | |
static void | sfdp_init_edge (edge_t *e) |
static void | sfdp_init_node_edge (graph_t *g) |
static void | sfdp_init_graph (Agraph_t *g) |
static double * | getPos (Agraph_t *g) |
static void | sfdpLayout (graph_t *g, spring_electrical_control ctrl, pointf pad) |
static int | late_smooth (graph_t *g, Agsym_t *sym, int dflt) |
static int | late_quadtree_scheme (graph_t *g, Agsym_t *sym, int dflt) |
static void | tuneControl (graph_t *g, spring_electrical_control ctrl) |
void | sfdp_layout (graph_t *g) |
void | sfdp_cleanup (graph_t *g) |
|
static |
Definition at line 64 of file sfdpinit.c.
References agfindnodeattr, agfstnode(), agnnodes(), agnxtnode(), gv_calloc(), hasPos, ND_id, ND_pos, Ndim, and NULL.
Referenced by sfdpLayout().
Definition at line 166 of file sfdpinit.c.
References agxget(), gv_isalpha(), gv_isdigit(), QUAD_TREE_FAST, QUAD_TREE_NONE, and QUAD_TREE_NORMAL.
Referenced by tuneControl().
Definition at line 120 of file sfdpinit.c.
References agxget(), gv_isalpha(), gv_isdigit(), SMOOTHING_NONE, SMOOTHING_RNG, SMOOTHING_SPRING, SMOOTHING_STRESS_MAJORIZATION_AVG_DIST, SMOOTHING_STRESS_MAJORIZATION_GRAPH_DIST, SMOOTHING_STRESS_MAJORIZATION_POWER_DIST, and SMOOTHING_TRIANGLE.
Referenced by tuneControl().
void sfdp_cleanup | ( | graph_t * | g | ) |
Definition at line 301 of file sfdpinit.c.
References agfstnode(), agfstout(), agnxtnode(), agnxtout(), gv_cleanup_edge(), and gv_cleanup_node().
|
static |
Definition at line 30 of file sfdpinit.c.
References agbindrec(), and common_init_edge().
Referenced by sfdp_init_node_edge().
|
static |
Definition at line 50 of file sfdpinit.c.
References agfindgraphattr, agroot(), EDGETYPE_LINE, GD_ndim, GD_odim, late_int(), MAXDIM, MIN, Ndim, setEdgeType(), and sfdp_init_node_edge().
Referenced by sfdp_layout().
|
static |
Definition at line 36 of file sfdpinit.c.
References agfstnode(), agfstout(), agnxtnode(), agnxtout(), neato_init_node(), and sfdp_init_edge().
Referenced by sfdp_init_graph().
void sfdp_layout | ( | graph_t * | g | ) |
Definition at line 228 of file sfdpinit.c.
References agdelete(), agnnodes(), AM_PRISM, ccomps(), CL_OFFSET, DFLT_MARGIN, expand_t::doAdd, pack_info::doSplines, dotneato_postprocess(), EDGETYPE_LINE, free(), getPackInfo(), graphAdjustMode(), graphviz_node_induce(), spring_electrical_control_struct::initial_scaling, l_node, adjust_data::mode, Ndim, NULL, spring_electrical_control_struct::overlap, packSubgraphs(), PS2INCH, removeOverlapWith(), adjust_data::scaling, sepFactor(), setEdgeType(), sfdp_init_graph(), sfdpLayout(), spline_edges(), spring_electrical_control_delete(), spring_electrical_control_new(), spring_electrical_control_print(), tuneControl(), adjust_data::value, Verbose, pointf_s::x, expand_t::x, pointf_s::y, and expand_t::y.
|
static |
Definition at line 85 of file sfdpinit.c.
References A, agfstnode(), agnxtnode(), spring_electrical_control_struct::edge_labeling_scheme, free(), getPos(), getSizes(), makeMatrix(), multilevel_spring_electrical_embedding(), ND_id, ND_pos, Ndim, NULL, spring_electrical_control_struct::overlap, and SparseMatrix_delete().
Referenced by sfdp_layout().
|
static |
Definition at line 201 of file sfdpinit.c.
References agfindgraphattr, agget(), agwarningf(), AUTOP, spring_electrical_control_struct::beautify_leaves, spring_electrical_control_struct::do_shrinking, spring_electrical_control_struct::edge_labeling_scheme, init(), INIT_RANDOM, spring_electrical_control_struct::K, late_double(), late_int(), late_quadtree_scheme(), late_smooth(), mapbool(), mapBool(), spring_electrical_control_struct::multilevels, spring_electrical_control_struct::p, QUAD_TREE_NORMAL, spring_electrical_control_struct::random_seed, spring_electrical_control_struct::rotation, seed, setSeed(), spring_electrical_control_struct::smoothing, SMOOTHING_NONE, and spring_electrical_control_struct::tscheme.
Referenced by sfdp_layout().