rankdir=LR and the nodes are declared inside of the subgraphs