if (!packagesOnly)
{
StrongComponent[] components = getCondensedClassGraph();
writer.println(" <cycles>");
StrongComponentRenderer sRenderer
= new XMLStrongComponentRenderer(2);
for (int i = 0; i < components.length; i++)
{
writer.print(sRenderer.render(components[i]));
}
writer.println(" </cycles>");
writer.println(" <classes numberOfExternalClasses=\""
+ getNumberOfExternalClasses() + "\">");
AtomicVertex[] graph = getClassGraph();
Map layerMap = getClassLayerMap();
render(graph, components, layerMap, new XMLClassRenderer(), writer);
writer.println(" </classes>");
}
StrongComponent[] components = getCondensedPackageGraph();
writer.println(" <packageCycles>");
StrongComponentRenderer sRenderer
= new XMLPackageStrongComponentRenderer(2);
for (int i = 0; i < components.length; i++)
{
writer.print(sRenderer.render(components[i]));
}
writer.println(" </packageCycles>");
writer.println(" <packages>");
AtomicVertex[] graph = getPackageGraph();
Map layerMap = getPackageLayerMap();