Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
block.c File Reference
#include <assert.h>
#include <cgraph/alloc.h>
#include <circogen/circular.h>
#include <circogen/block.h>
Include dependency graph for block.c:

Go to the source code of this file.

Functions

void initBlocklist (blocklist_t *bl)
 
block_tmkBlock (Agraph_t *g)
 
void freeBlock (block_t *sp)
 
int blockSize (block_t *sp)
 
void appendBlock (blocklist_t *bl, block_t *bp)
 add block at end
 
void insertBlock (blocklist_t *bl, block_t *bp)
 add block at beginning
 

Function Documentation

◆ appendBlock()

void appendBlock ( blocklist_t bl,
block_t bp 
)

Definition at line 45 of file block.c.

References blocklist_t::first, blocklist_t::last, block::next, and NULL.

Referenced by createBlocktree(), and dfs().

Here is the caller graph for this function:

◆ blockSize()

int blockSize ( block_t sp)

Definition at line 39 of file block.c.

References agnnodes(), and block::sub_graph.

Referenced by dfs().

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

◆ freeBlock()

void freeBlock ( block_t sp)

Definition at line 31 of file block.c.

References block::circle_list, and free().

Referenced by freeBlocktree().

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

◆ initBlocklist()

void initBlocklist ( blocklist_t bl)

Definition at line 17 of file block.c.

References blocklist_t::first, blocklist_t::last, and NULL.

Referenced by createBlocktree(), initGraphAttrs(), and mkBlock().

Here is the caller graph for this function:

◆ insertBlock()

void insertBlock ( blocklist_t bl,
block_t bp 
)

Definition at line 58 of file block.c.

References blocklist_t::first, blocklist_t::last, and block::next.

Referenced by dfs().

Here is the caller graph for this function:

◆ mkBlock()

block_t * mkBlock ( Agraph_t g)

Definition at line 23 of file block.c.

References block::children, gv_alloc(), initBlocklist(), and block::sub_graph.

Here is the call graph for this function: