size_t c_cnt = 0;
char buffer[SMALLBUF];
char *name;
- Agraph_t *out = 0;
+ Agraph_t *out = NULL;
Agnode_t *n;
Agraph_t **ccs;
size_t len;
if (agnnodes(g) == 0) {
*ncc = 0;
- return 0;
+ return NULL;
}
name = setPrefix (pfx, &len, buffer, SMALLBUF);
if (agnnodes(g) == 0) {
*ncc = 0;
- return 0;
+ return NULL;
}
name = setPrefix (pfx, &len, buffer, SMALLBUF);
if (ip)
return ip->ptr.n;
fprintf (stderr, "nodeinfo undefined\n");
- return 0;
+ return NULL;
}
void
dnodeSet (Agnode_t* v, Agnode_t* n)
Agnode_t *dn;
Agnode_t *n;
- dg = agopen("dg", Agstrictundirected, (Agdisc_t *) 0);
+ dg = agopen("dg", Agstrictundirected, NULL);
deriveClusters (dg, g);
if (hd == tl)
continue;
if (hd > tl)
- agedge(dg, tl, hd, 0, 1);
+ agedge(dg, tl, hd, NULL, 1);
else
- agedge(dg, hd, tl, 0, 1);
+ agedge(dg, hd, tl, NULL, 1);
}
}
*/
static Agraph_t *projectG(Agraph_t * subg, Agraph_t * g, int inCluster)
{
- Agraph_t *proj = 0;
+ Agraph_t *proj = NULL;
Agnode_t *n;
Agnode_t *m;
orig_t *op;
for (n = agfstnode(subg); n; n = agnxtnode(subg, n)) {
if ((m = agfindnode(g, agnameof(n)))) {
- if (proj == 0) {
+ if (proj == NULL) {
proj = agsubg(g, agnameof(subg), 1);
}
agsubnode(proj, m, 1);
if (agnnodes(g) == 0) {
*ncc = 0;
- return 0;
+ return NULL;
}
/* Bind ccgraphinfo to graph and all subgraphs */