41 static void intr(
int s)
52 static void fperr(
int s)
54 fprintf(stderr,
"caught SIGFPE %d\n", s);
61 static graph_t *create_test_graph(
void)
77 sprintf(name,
"%d", j);
78 node[j] =
agnode(g, name, 1);
89 sg =
agsubg (g,
"cluster1", 1);
95 int main(
int argc,
char **argv)
105 signal(SIGINT, intr);
107 signal(SIGFPE, fperr);
114 G = create_test_graph();
CGRAPH_API Agnode_t * agnode(Agraph_t *g, char *name, int createflag)
CGRAPH_API Agraph_t * agopen(char *name, Agdesc_t desc, Agdisc_t *disc)
int gvParseArgs(GVC_t *gvc, int argc, char **argv)
int gvRenderJobs(GVC_t *gvc, graph_t *g)
int gvFreeLayout(GVC_t *gvc, graph_t *g)
void gvFinalize(GVC_t *gvc)
CGRAPH_API Agdesc_t Agdirected
int gvLayoutJobs(GVC_t *gvc, graph_t *g)
CGRAPH_API Agraph_t * agsubg(Agraph_t *g, char *name, int cflag)
lt_symlist_t lt_preloaded_symbols[]
CGRAPH_API int agclose(Agraph_t *g)
GVC_t * gvContextPlugins(const lt_symlist_t *builtins, int demand_loading)
Agnode_t * node(Agraph_t *g, char *name)
CGRAPH_API Agedge_t * agedge(Agraph_t *g, Agnode_t *t, Agnode_t *h, char *name, int createflag)
CGRAPH_API void * agbindrec(void *obj, char *name, unsigned int size, int move_to_front)
int gvFreeContext(GVC_t *gvc)
int main(int argc, char **argv)
CGRAPH_API Agnode_t * agsubnode(Agraph_t *g, Agnode_t *n, int createflag)