class_docstr: Class for constructing DGLGraph from Node/Edge/Graph data. Internal use only.
class_docstr_tok: ["Class","for","constructing","DGLGraph","from","Node\/Edge\/Graph","data",".","Internal","use","only","."]
code: def construct_graphs(node_data, edge_data, graph_data=None):
      if not isinstance(node_data, list):
          node_data = [node_data]
      if not isinstance(edge_data, list):
          edge_data = [edge_data]
      node_dict = NodeData.to_dict(node_data)
      edge_dict = EdgeData.to_dict(edge_data, node_dict)
      graph_dict = DGLGraphConstructor._construct_graphs(
          node_dict, edge_dict
      )
      if graph_data is None:
          graph_data = GraphData(np.full(1, 0), {})
      graphs, data = GraphData.to_dict(graph_data, graph_dict)
      return graphs, 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 for calling the DGLGraphConstructor obj's underlying member method code with example usage: obj.construct_graphs(node_data, edge_data, graph_data) and returns: graphs,  data