Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
circular.c File Reference
#include <cgraph/agxbuf.h>
#include <circogen/circular.h>
#include <circogen/blocktree.h>
#include <circogen/circpos.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(), circPos(), createBlocktree(), createOneBlock(), freeBlocktree(), initGraphAttrs(), mapbool(), ND_pos, and state.

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, mkBlock(), state, 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(), initBlocklist(), late_double(), MINDIST, NULL, ORIGN, and state.

Referenced by circularLayout().

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