Graphviz 13.0.0~dev.20241220.2304
Loading...
Searching...
No Matches
circular.c File Reference
#include <circogen/circular.h>
#include <circogen/blocktree.h>
#include <circogen/circpos.h>
#include <util/agxbuf.h>
Include dependency graph for circular.c:

Go to the source code of this file.

Macros

#define MINDIST   1.0
 

Functions

static void initGraphAttrs (Agraph_t *g, circ_state *state)
 
static block_tcreateOneBlock (Agraph_t *g, circ_state *state)
 
void circularLayout (Agraph_t *g, Agraph_t *realg, int *blockCount)
 

Macro Definition Documentation

◆ MINDIST

#define MINDIST   1.0

Definition at line 16 of file circular.c.

Function Documentation

◆ circularLayout()

void circularLayout ( Agraph_t g,
Agraph_t realg,
int *  blockCount 
)

Definition at line 65 of file circular.c.

References agfstnode(), agget(), agnnodes(), circ_state::blockCount, circPos(), createBlocktree(), createOneBlock(), freeBlocktree(), initGraphAttrs(), mapbool(), and ND_pos.

Referenced by circoLayout().

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

◆ createOneBlock()

static block_t * createOneBlock ( Agraph_t g,
circ_state state 
)
static

Definition at line 38 of file circular.c.

References agfstnode(), agnxtnode(), agsubg(), agsubnode(), agxbfree(), agxbprint(), agxbuse(), BLOCK, circ_state::blockCount, mkBlock(), and block::sub_graph.

Referenced by circularLayout().

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

◆ initGraphAttrs()

static void initGraphAttrs ( Agraph_t g,
circ_state state 
)
static

Definition at line 22 of file circular.c.

References agattr(), agfstnode(), agget(), AGNODE, AGRAPH, agraphof(), circ_state::bl, initBlocklist(), late_double(), circ_state::min_dist, MINDIST, circ_state::N_root, NULL, circ_state::orderCount, ORIGN, and circ_state::rootname.

Referenced by circularLayout().

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