Graphviz 13.1.2~dev.20250807.2324
|
#include <circogen/blocktree.h>
#include <stdbool.h>
#include <util/agxbuf.h>
#include <util/debug.h>
#include <util/gv_math.h>
Go to the source code of this file.
Functions | |
static void | addNode (block_t *bp, Agnode_t *n) |
static Agraph_t * | makeBlockGraph (Agraph_t *g, circ_state *state) |
static block_t * | makeBlock (Agraph_t *g, circ_state *state) |
static void | dfs (Agraph_t *g, Agnode_t *u, circ_state *state, bool isRoot, estack_t *stk) |
static void | find_blocks (Agraph_t *g, circ_state *state) |
block_t * | createBlocktree (Agraph_t *g, circ_state *state) |
void | freeBlocktree (block_t *bp) |
Definition at line 17 of file blocktree.c.
References agsubnode(), BLOCK, and block::sub_graph.
Referenced by dfs(), and getval().
block_t * createBlocktree | ( | Agraph_t * | g, |
circ_state * | state | ||
) |
Definition at line 140 of file blocktree.c.
References agfstnode(), agnxtnode(), appendBlock(), circ_state::bl, BLOCK, CHILD, find_blocks(), blocklist_t::first, initBlocklist(), block::next, parent, PARENT, SET_PARENT, block::sub_graph, and VAL.
Referenced by circularLayout().
|
static |
Definition at line 56 of file blocktree.c.
References addNode(), agfstedge(), aghead, agnxtedge(), agtail, appendBlock(), BLOCK, blockSize(), dfs(), EDGEORDER, imin(), insertBlock(), LOWVAL, makeBlock(), NULL, PARENT, and VAL.
Referenced by dfs(), and find_blocks().
|
static |
Definition at line 110 of file blocktree.c.
References agfindnode, agfstnode(), agnameof(), agnxtnode(), dfs(), GV_DEBUG, late_bool(), circ_state::N_root, NULL, ORIGN, and circ_state::rootname.
Referenced by createBlocktree().
void freeBlocktree | ( | block_t * | bp | ) |
Definition at line 178 of file blocktree.c.
References block::children, blocklist_t::first, freeBlock(), freeBlocktree(), and block::next.
Referenced by circularLayout(), and freeBlocktree().
|
static |
Definition at line 34 of file blocktree.c.
References makeBlockGraph(), and mkBlock().
Referenced by dfs().
|
static |
Definition at line 23 of file blocktree.c.
References agbindrec(), agsubg(), agxbfree(), agxbprint(), agxbuse(), and circ_state::blockCount.
Referenced by makeBlock().