class_docstr: Class of edge data which is used for DGLGraph construction. Internal use only.
class_docstr_tok: ["Class","of","edge","data","which","is","used","for","DGLGraph","construction",".","Internal","use","only","."]
code: def __init__(self, src_id, dst_id, data, type=None, graph_id=None):
      self.src = np.array(src_id)
      self.dst = np.array(dst_id)
      self.data = data
      self.type = type if type is not None else ("_V", "_E", "_V")
      self.graph_id = (
          np.array(graph_id)
          if graph_id is not None
          else np.full(len(src_id), 0)
      )
      _validate_data_length(
          {
              **{
                  "src": self.src,
                  "dst": self.dst,
                  "graph_id": self.graph_id,
              },
              **self.data,
          }
      )
  
imports: import ast
  import os
  from typing import Callable, List, Optional
  import numpy
  import pandas
  import pydantic
  import yaml
  from ..None import backend
  from ..base import dgl_warning, DGLError
  from ..convert import heterograph
label_desc: Use image node_id 1 to create a new EdgeData object from inherited base classes: BaseData with example: obj = EdgeData(src_id, dst_id, data, type, graph_id)