My current implementation look like
Code:
struct ElementPair          
{
 string First_element;
 string Second_element;
};

struct Element_set
{
 vector<ElementPair> ElementPairs; 
};

void makeSet(string str1,string str2)
{
  ...
.... ..
....
 vector<Element_set > Pathset;
Now i need to assign str1 to First_element and str2 to Second_element so that my final stored data look like {{{A,B},{B,C},{C,D}},{{D,E},{E,F}}}