how to recursively parse a comma separated string with nested parentheses
<p>I have comma separated input of graphs with each graph input starting and ending with braces () .Between the braces lies details of vertices and edges in set form as below</p>

<p><code>({A,B,C},{(A,B),(B,C),(C,A)}),({A,B,C,D,E},{(A,B),(B,C),(C,A),(E,D),(D,A)})</code></p>

<p>this input string contains two graph:({V1,..}{(E1),..}),({V2,..}{(E2),..}),..</p>

<pre><code>{A,B,C},{(A,B),(B,C),(C,A)}
{A,B,C,D,E},{(A,B),(B,C),(C,A),(E,D),(D,A)}
</code></pre>

<p>Is there regex to parse this without too much of boilar plate code...?</p>