Map<String, Graph> subgraphs = Maps.newHashMap();
gv.attr("rankdir", "TB");
Map<P2jLogicalRelationalOperator, Node> graphMap = Maps.newHashMap();
for (Entry<String, P2jLogicalRelationalOperator> e : p2jMap.entrySet()) {
Node node = new Node();
graphMap.put(e.getValue(), node);
}
for (Entry<P2jLogicalRelationalOperator, Node> e : graphMap.entrySet()) {
Node node = e.getValue();
attributeGraphNode(node, e.getKey());
if (!appendToSubgraph(subgraphs, node, e.getKey())) {
gv.node(node);
}
for (String i : e.getKey().getSuccessors()) {