]> granicus.if.org Git - graphviz/commitdiff
Print out depth of graph in verbose mode. untagged-941905a04b09702a353c
authorEmden Gansner <emdenrg@google.com>
Mon, 28 Nov 2016 19:24:50 +0000 (14:24 -0500)
committerEmden Gansner <emdenrg@google.com>
Mon, 28 Nov 2016 19:24:50 +0000 (14:24 -0500)
lib/twopigen/circle.c

index 6c4bac4a1ad2088d5023d1dbbbaa46b2c5525b43..8bc950e3545ba1fdcfafefd16e52bfdef2f68735 100644 (file)
@@ -423,7 +423,7 @@ Agnode_t* circleLayout(Agraph_t * sg, Agnode_t * center)
     if (!center)
        center = findCenterNode(sg);
     if (Verbose)
-       fprintf(stderr, "root = %s\n", agnameof(center));
+       fprintf(stderr, "root = %s depth = %d\n", agnameof(center), SLEAF(center)-1);
 
     maxNStepsToCenter = setParentNodes(sg,center);
     if (maxNStepsToCenter < 0) {