Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
patchworkinit.c File Reference
#include <assert.h>
#include <cgraph/list.h>
#include <common/render.h>
#include <common/utils.h>
#include <patchwork/patchwork.h>
#include <limits.h>
#include <neatogen/adjust.h>
#include <pack/pack.h>
#include <neatogen/neatoprocs.h>
#include <stdbool.h>
Include dependency graph for patchworkinit.c:

Go to the source code of this file.

Functions

static void mkClusters (graph_t *g, clist_t *pclist, graph_t *parent)
 
static void patchwork_init_node (node_t *n)
 
static void patchwork_init_edge (edge_t *e)
 
static void patchwork_init_node_edge (graph_t *g)
 
static void patchwork_init_graph (graph_t *g)
 
void patchwork_layout (Agraph_t *g)
 
static void patchwork_cleanup_graph (graph_t *g)
 
void patchwork_cleanup (graph_t *g)
 

Function Documentation

◆ mkClusters()

static void mkClusters ( graph_t g,
clist_t *  pclist,
graph_t parent 
)
static

Definition at line 35 of file patchworkinit.c.

References agbindrec(), agfstsubg(), agnxtsubg(), GD_clust, GD_n_cluster, is_a_cluster(), mkClusters(), NULL, and parent.

Referenced by mkClusters(), and patchwork_init_graph().

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

◆ patchwork_cleanup()

void patchwork_cleanup ( graph_t g)

Definition at line 131 of file patchworkinit.c.

References agfstnode(), agfstout(), agnxtnode(), agnxtout(), free(), gv_cleanup_edge(), gv_cleanup_node(), ND_alg, and patchwork_cleanup_graph().

Here is the call graph for this function:

◆ patchwork_cleanup_graph()

static void patchwork_cleanup_graph ( graph_t g)
static

Definition at line 125 of file patchworkinit.c.

References free(), GD_clust, and GD_neato_nlist.

Referenced by patchwork_cleanup().

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

◆ patchwork_init_edge()

static void patchwork_init_edge ( edge_t e)
static

Definition at line 76 of file patchworkinit.c.

References agbindrec().

Referenced by patchwork_init_node_edge().

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

◆ patchwork_init_graph()

static void patchwork_init_graph ( graph_t g)
static

Definition at line 101 of file patchworkinit.c.

References agattr(), AGNODE, EDGETYPE_LINE, GD_ndim, mkClusters(), N_shape, Ndim, NULL, patchwork_init_node_edge(), and setEdgeType().

Referenced by patchwork_layout().

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

◆ patchwork_init_node()

static void patchwork_init_node ( node_t n)
static

Definition at line 71 of file patchworkinit.c.

References agset().

Referenced by patchwork_init_node_edge().

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

◆ patchwork_init_node_edge()

static void patchwork_init_node_edge ( graph_t g)
static

Definition at line 81 of file patchworkinit.c.

References agbindrec(), agfstnode(), agfstout(), agnnodes(), agnxtnode(), agnxtout(), GD_neato_nlist, gv_calloc(), ND_alg, patchwork_init_edge(), and patchwork_init_node().

Referenced by patchwork_init_graph().

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

◆ patchwork_layout()

void patchwork_layout ( Agraph_t g)

Definition at line 114 of file patchworkinit.c.

References agnnodes(), dotneato_postprocess(), GD_n_cluster, patchwork_init_graph(), and patchworkLayout().

Here is the call graph for this function: