Serialize And Deserialize Graph Leetcode Problems