Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
circularinit.c File Reference

API circogen/circo.h: circo_init_graph, circoLayout, circo_layout, circo_cleanup. More...

#include <circogen/circular.h>
#include <neatogen/adjust.h>
#include <pack/pack.h>
#include <neatogen/neatoprocs.h>
#include <stddef.h>
#include <stdbool.h>
#include <string.h>
#include <util/alloc.h>
Include dependency graph for circularinit.c:

Go to the source code of this file.

Functions

static void circular_init_edge (edge_t *e)
 
static void circular_init_node_edge (graph_t *g)
 
void circo_init_graph (graph_t *g)
 
static node_tmakeDerivedNode (graph_t *dg, char *name, int isNode, void *orig)
 
static Agraph_t ** circomps (Agraph_t *g, size_t *cnt)
 
static void closeDerivedGraph (graph_t *g)
 
static void copyPosns (graph_t *g)
 
void circoLayout (Agraph_t *g)
 
void circo_layout (Agraph_t *g)
 
void circo_cleanup (graph_t *g)
 ND_alg is freed in circo_layout.
 

Function Documentation

◆ circo_cleanup()

void circo_cleanup ( graph_t g)

Definition at line 236 of file circularinit.c.

References agfstnode(), agfstout(), agnxtnode(), agnxtout(), closeDerivedGraph(), free(), GD_alg, GD_neato_nlist, gv_cleanup_edge(), gv_cleanup_node(), and NULL.

Here is the call graph for this function:

◆ circo_init_graph()

void circo_init_graph ( graph_t g)

Definition at line 55 of file circularinit.c.

References agroot(), circular_init_node_edge(), EDGETYPE_LINE, GD_ndim, Ndim, and setEdgeType().

Referenced by circo_layout().

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

◆ circo_layout()

void circo_layout ( Agraph_t g)

Definition at line 224 of file circularinit.c.

References agfstnode(), agnnodes(), circo_init_graph(), circoLayout(), dotneato_postprocess(), free(), ND_alg, and spline_edges().

Here is the call graph for this function:

◆ circoLayout()

void circoLayout ( Agraph_t g)

Definition at line 188 of file circularinit.c.

References adjustNodes(), agnnodes(), circomps(), circularLayout(), CL_OFFSET, copyPosns(), free(), getPackInfo(), l_node, packSubgraphs(), and Agraph_s::root.

Referenced by circo_layout().

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

◆ circomps()

static Agraph_t ** circomps ( Agraph_t g,
size_t *  cnt 
)
static

Definition at line 92 of file circularinit.c.

References agbindrec(), agedge(), agfstnode(), agfstout(), aghead, agnameof(), agnxtnode(), agnxtout(), agopen(), Agstrictundirected, agsubedge(), agtail, ccomps(), cnt(), DNODE, ED_alg, GD_alg, gv_alloc(), makeDerivedNode(), NULL, and ORIGN.

Referenced by circoLayout().

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

◆ circular_init_edge()

static void circular_init_edge ( edge_t e)
static

Definition at line 25 of file circularinit.c.

References agbindrec(), common_init_edge(), E_weight, ED_factor, and late_double().

Referenced by circular_init_node_edge().

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

◆ circular_init_node_edge()

static void circular_init_node_edge ( graph_t g)
static

Definition at line 34 of file circularinit.c.

References agfstnode(), agfstout(), agnnodes(), agnxtnode(), agnxtout(), circular_init_edge(), GD_neato_nlist, gv_calloc(), ND_alg, and neato_init_node().

Referenced by circo_init_graph().

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

◆ closeDerivedGraph()

static void closeDerivedGraph ( graph_t g)
static

Definition at line 157 of file circularinit.c.

References agclose(), agfstnode(), agfstout(), agnxtnode(), agnxtout(), ED_alg, free(), ND_alg, and ND_pos.

Referenced by circo_cleanup().

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

◆ copyPosns()

static void copyPosns ( graph_t g)
static

Definition at line 176 of file circularinit.c.

References agfstnode(), agnxtnode(), ND_pos, and ORIGN.

Referenced by circoLayout().

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

◆ makeDerivedNode()

static node_t * makeDerivedNode ( graph_t dg,
char *  name,
int  isNode,
void *  orig 
)
static

Definition at line 68 of file circularinit.c.

References agbindrec(), agnode(), gv_alloc(), gv_calloc(), ND_alg, ND_ht, ND_lw, ND_pos, ND_rw, Ndim, ORIGG, and ORIGN.

Referenced by circomps().

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