Graphviz 13.0.0~dev.20241222.1117
Loading...
Searching...
No Matches
fdpinit.c File Reference

API fdpgen/fdp.h: fdp_init_node_edge, fdp_cleanup. More...

#include <fdpgen/tlayout.h>
#include <neatogen/neatoprocs.h>
#include <stdbool.h>
#include <util/agxbuf.h>
#include <util/alloc.h>
Include dependency graph for fdpinit.c:

Go to the source code of this file.

Macros

#define FDP_PRIVATE   1
 

Functions

static void initialPositions (graph_t *g)
 
static void init_edge (edge_t *e, attrsym_t *E_len)
 
static void init_node (node_t *n)
 
void fdp_init_node_edge (graph_t *g)
 
static void cleanup_subgs (graph_t *g)
 
static void fdp_cleanup_graph (graph_t *g)
 
void fdp_cleanup (graph_t *g)
 

Macro Definition Documentation

◆ FDP_PRIVATE

#define FDP_PRIVATE   1

Definition at line 24 of file fdpinit.c.

Function Documentation

◆ cleanup_subgs()

static void cleanup_subgs ( graph_t g)
static

Definition at line 119 of file fdpinit.c.

References cleanup_subgs(), free(), free_label(), GD_alg, GD_clust, GD_label, and GD_n_cluster.

Referenced by cleanup_subgs(), and fdp_cleanup_graph().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fdp_cleanup()

void fdp_cleanup ( graph_t g)

Definition at line 143 of file fdpinit.c.

References agfstnode(), agfstout(), agnxtnode(), agnxtout(), fdp_cleanup_graph(), gv_cleanup_edge(), and gv_cleanup_node().

Here is the call graph for this function:

◆ fdp_cleanup_graph()

static void fdp_cleanup_graph ( graph_t g)
static

Definition at line 136 of file fdpinit.c.

References cleanup_subgs(), free(), GD_alg, and GD_neato_nlist.

Referenced by fdp_cleanup().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fdp_init_node_edge()

void fdp_init_node_edge ( graph_t g)

Definition at line 87 of file fdpinit.c.

References agattr(), AGEDGE, agfstnode(), agfstout(), aginit(), agnnodes(), AGNODE, agnxtnode(), agnxtout(), GD_neato_nlist, gv_calloc(), init_edge(), init_node(), initialPositions(), ND_id, NULL, and processClusterEdges().

Referenced by fdp_init_graph().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_edge()

static void init_edge ( edge_t e,
attrsym_t E_len 
)
static

Definition at line 71 of file fdpinit.c.

References agbindrec(), common_init_edge(), E_weight, ED_dist, ED_factor, fdp_parms, fdpParms_s::K, and late_double().

Referenced by fdp_init_node_edge().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_node()

static void init_node ( node_t n)
static

Definition at line 80 of file fdpinit.c.

References agraphof(), common_init_node(), GD_flip, GD_ndim, gv_calloc(), gv_nodesize(), and ND_pos.

Referenced by fdp_init_node_edge().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ initialPositions()

static void initialPositions ( graph_t g)
static

Definition at line 32 of file fdpinit.c.

References agattr(), agnameof(), AGNODE, agxget(), GD_neato_nlist, mapbool(), ND_pinned, ND_pos, NULL, P_PIN, P_SET, and PSinputscale.

Referenced by fdp_init_node_edge().

Here is the call graph for this function:
Here is the caller graph for this function: