class_docstr: Vertex stores in and out edge connections to other Vertex instances.
  
  The Vertex class supports serialization to a JSON data format expected by the
  client side representation.  When serializing, it generates the following
  fields:
    in_edge_index: The list of directed edge indices into the Vertex.
    out_edge_index: The list of directed edge indices from the Vertex.
docstr: Returns a simplified dictionary representing the Vertex.
  
  Returns:
    A dictionary that can easily be serialized to JSON.
docstr_tok: ["Returns","a","simplified","dictionary","representing","the","Vertex",".","Returns",":","A","dictionary","that","can","easily","be","serialized","to","JSON","."]
code: def to_dict(self):
      """Returns a simplified dictionary representing the Vertex.
  
      Returns:
        A dictionary that can easily be serialized to JSON.
      """
      return {
          "in_edge_index": self.in_edges,
          "out_edge_index": self.out_edges,
      }
  
file_path: tensor2tensor/tensor2tensor/insights/graph.py
label_desc: Use image node_id 2 for calling the Vertex obj's underlying member method code with example usage: obj.to_dict() and returns: dict