Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
patchworkinit.c File Reference
#include <assert.h>
#include <cgraph/list.h>
#include <cgraph/startswith.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 34 of file patchworkinit.c.

References agbindrec(), agfstsubg(), agnameof(), agnxtsubg(), GD_alg, GD_clust, GD_n_cluster, GD_ndim, gv_alloc(), mkClusters(), NULL, parent, and startswith().

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 139 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 133 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 82 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 108 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 76 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 88 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 122 of file patchworkinit.c.

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

Here is the call graph for this function: