If you use
CompoundDirectedGraph containing
Subgraphs, you may find out that the Layout from
CompoundDirectedGraph is broken if you use
graph.setDirection(PositionConstants.EAST);
for your
CompoundDirectedGraph.
This Patch (developed against version 3.2.0) fixes the Layout for Subgraphs.
Download the patch