33 static char *rootname;
45 rootname =
agget(rootg,
"root");
72 sprintf(name,
"_block_%d", state->
blockCount++);
104 initGraphAttrs(g, &state);
107 root = createOneBlock(g, &state);
112 cleanup(root, &state);
121 fprintf(stderr,
"%s\n",
agnameof(g));
123 fprintf(stderr,
"%s (%x)\n",
agnameof(n), (
unsigned int) n);
156 fprintf(stderr,
"%s: %x %s %s ",
agnameof(n),
FLAGS(n), pname, bname);
159 fprintf(stderr,
"%d %d\n",
VAL(n),
LOWVAL(n));
176 fprintf(stderr,
"%s %s %d %s %d\n", tname, name1, dist1, name2,
180 fprintf(stderr,
"%d\n",
POSITION(n));
Agsym_t * agattr(Agraph_t *g, int kind, char *name, char *value)
void circPos(Agraph_t *g, block_t *sn, circ_state *state)
void circularLayout(Agraph_t *g, Agraph_t *realg)
void initBlocklist(blocklist_t *bl)
CGRAPH_API Agedge_t * agfstout(Agraph_t *g, Agnode_t *n)
block_t * createBlocktree(Agraph_t *g, circ_state *state)
char * agget(void *obj, char *name)
CGRAPH_API Agraph_t * agraphof(void *obj)
CGRAPH_API Agraph_t * agsubg(Agraph_t *g, char *name, int cflag)
CGRAPH_API Agnode_t * agnxtnode(Agraph_t *g, Agnode_t *n)
CGRAPH_API Agnode_t * aghead(Agedge_t *e)
CGRAPH_API char * agnameof(void *)
block_t * mkBlock(Agraph_t *g)
CGRAPH_API Agnode_t * agfstnode(Agraph_t *g)
COORD dist2(Ppoint_t, Ppoint_t)
void freeBlocktree(block_t *bp)
double late_double(void *obj, attrsym_t *attr, double def, double low)
CGRAPH_API int agnnodes(Agraph_t *g)
CGRAPH_API Agedge_t * agnxtout(Agraph_t *g, Agedge_t *e)
CGRAPH_API Agnode_t * agsubnode(Agraph_t *g, Agnode_t *n, int createflag)