[Dot] fix previous commit

   - style of subgraph doesn't use square bracket
   - style of subgraph use the semicolon separator

   - simplify the code by using the fact that dot understand lists that
    end with the list separator