Current dot (2.38 here) seems to need curly braces around subgraphs. Patch attached
In 3ac58dc13f9ad0bef2948865148fb830f87ae505.
Bug watches keep track of this bug in other bug trackers.
In 3ac58dc13f9ad0b ef2948865148fb8 30f87ae505.