GCN architecture convert Hugging face datasets to set of graphs

I am trying to train using GCN with the yelp polarity dataset. How can i convert the dataset into a set of graphs?