this question has been asked here:
the answer given was to use style=invis but the problem with it as mentioned in one of the comments is that it removes the subgraph label as well which is not desired. so how can one remove just the border around subgraphs and nothing else?