25 static void twopi_init_edge(
edge_t * e)
32 static void twopi_init_node_edge(
graph_t * g)
59 twopi_init_node_edge(g);
89 if ((s =
agget(g,
"root"))) {
93 agerr(
AGWARN,
"specified root node \"%s\" was not found.", s);
94 agerr(
AGPREV,
"Using default calculation for root node\n");
106 if ((s =
agget(g,
"scale")) && *s) {
107 if ((r = sscanf (s,
"%lf,%lf",&sc.
x,&sc.
y))) {
108 if (r == 1) sc.
y = sc.
x;
126 else if (!rootattr || !(lctr = findRootNode(g, rootattr)))
131 if (setLocalRoot && !lctr)
132 agxset (c, rootattr,
"1");
143 for (i = 0; i < ncc; i++) {
147 else if (!rootattr || !(lctr = findRootNode(sg, rootattr)))
153 if (setLocalRoot && (!lctr || (lctr == ctr)))
154 agxset (c, rootattr,
"1");
163 for (i = 0; i < ncc; i++) {
174 static void twopi_cleanup_graph(
graph_t * g)
199 twopi_cleanup_graph(g);
void dotneato_postprocess(Agraph_t *g)
CGRAPH_API void agclean(Agraph_t *g, int kind, char *rec_name)
Agsym_t * agattr(Agraph_t *g, int kind, char *name, char *value)
int nodeInduce(Agraph_t *g)
int agxset(void *obj, Agsym_t *sym, char *value)
CGRAPH_API int agdelete(Agraph_t *g, void *obj)
int agerr(agerrlevel_t level, const char *fmt,...)
void gv_cleanup_edge(Agedge_t *e)
CGRAPH_API int agcontains(Agraph_t *, void *)
pack_mode getPackInfo(Agraph_t *g, pack_mode dflt, int dfltMargin, pack_info *pinfo)
CGRAPH_API Agraph_t * agroot(void *obj)
CGRAPH_API Agedge_t * agfstout(Agraph_t *g, Agnode_t *n)
char * agget(void *obj, char *name)
int agset(void *obj, char *name, char *value)
CGRAPH_API Agnode_t * agnxtnode(Agraph_t *g, Agnode_t *n)
Agnode_t * circleLayout(Agraph_t *sg, Agnode_t *center)
CGRAPH_API char * agnameof(void *)
void spline_edges(Agraph_t *)
int adjustNodes(graph_t *G)
CGRAPH_API Agnode_t * agfstnode(Agraph_t *g)
int packSubgraphs(int ng, Agraph_t **gs, Agraph_t *root, pack_info *info)
EXTERN Agsym_t * E_weight
double late_double(void *obj, attrsym_t *attr, double def, double low)
void twopi_cleanup(Agraph_t *g)
void gv_cleanup_node(Agnode_t *n)
CGRAPH_API int agnnodes(Agraph_t *g)
CGRAPH_API void * agbindrec(void *obj, char *name, unsigned int size, int move_to_front)
int common_init_edge(edge_t *e)
void setEdgeType(graph_t *g, int dflt)
void neato_init_node(node_t *n)
Agraph_t ** ccomps(Agraph_t *g, int *ncc, char *pfx)
void twopi_layout(Agraph_t *g)
char * agxget(void *obj, Agsym_t *sym)
CGRAPH_API Agedge_t * agnxtout(Agraph_t *g, Agedge_t *e)
#define GD_neato_nlist(g)
void twopi_init_graph(graph_t *g)