maximum number of steps to the center. Second, we can't use SLEAF if the root
is specified, since SLEAF is not calculated in that case.
if (!center)
center = findCenterNode(sg);
- if (Verbose)
- fprintf(stderr, "root = %s depth = %d\n", agnameof(center), SLEAF(center)-1);
maxNStepsToCenter = setParentNodes(sg,center);
+ if (Verbose)
+ fprintf(stderr, "root = %s max steps to root = %d\n", agnameof(center), maxNStepsToCenter);
if (maxNStepsToCenter < 0) {
agerr(AGERR, "twopi: use of weight=0 creates disconnected component.\n");
return center;