class_docstr: A directed graph that can easily be JSON serialized for visualization.
  
  When serializing, it generates the following fields:
    edge: The list of all serialized Edge instances.
    node: The list of all serialized Vertex instances.
docstr: Returns a simplified dictionary representing the Graph.
  
  Returns:
    A dictionary that can easily be serialized to JSON.
docstr_tok: ["Returns","a","simplified","dictionary","representing","the","Graph",".","Returns",":","A","dictionary","that","can","easily","be","serialized","to","JSON","."]
code: def to_dict(self):
      """Returns a simplified dictionary representing the Graph.
  
      Returns:
        A dictionary that can easily be serialized to JSON.
      """
      return {
          "node": [v.to_dict() for v in self.vertices],
          "edge": [e.to_dict() for e in self.edges],
      }
  
file_path: tensor2tensor/tensor2tensor/insights/graph.py
label_desc: Use image node_id 5 for calling the Graph obj's underlying member method code with example usage: obj.to_dict() and returns: dict