31 #define MARK(n) (marks[ND_id(n)])
41 if ((other =
agtail(e)) == n)
44 dfs(g, other, out, marks);
77 if ((pp = PORTS(g))) {
78 sprintf(name,
"cc%s_%d",
agnameof(g), c_cnt++ + C_cnt);
83 NPORTS(subg) = NPORTS(g);
87 dfs(g, pp->n, subg, marks);
99 sprintf(name,
"cc%s_%d",
agnameof(g), c_cnt++ + C_cnt);
105 dfs(g, n, subg, marks);
114 sprintf(name,
"cc%s+%d",
agnameof(g), c_cnt++ + C_cnt);
118 dfs(g, n, subg, marks);
graph_t ** findCComp(graph_t *g, int *cnt, int *pinned)
int nodeInduce(Agraph_t *g)
CGRAPH_API Agedge_t * agfstedge(Agraph_t *g, Agnode_t *n)
CGRAPH_API Agraph_t * agfstsubg(Agraph_t *g)
CGRAPH_API Agraph_t * agnxtsubg(Agraph_t *subg)
CGRAPH_API Agnode_t * agtail(Agedge_t *e)
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 *)
CGRAPH_API Agnode_t * agfstnode(Agraph_t *g)
CGRAPH_API Agedge_t * agnxtedge(Agraph_t *g, Agedge_t *e, 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)
CGRAPH_API Agnode_t * agsubnode(Agraph_t *g, Agnode_t *n, int createflag)