parameters: (cls, graphs, additional_keys=[])
return_statement: return graph
docstring: creates `BatchGraph` from a list of `SubGraph`s.
      Note that the additional data of each SubGraph must have the same
      type and all dimensions except axis=0 must be equal.
  
      Args:
        graphs: `SubGraph` objects.
        additional_keys: Keys(a list) of the additional data.
docstring_summary: creates `BatchGraph` from a list of `SubGraph`s.
      Note that the additional data of each SubGraph must have the same
      type and all dimensions except axis=0 must be equal.
docstring_tokens: creates BatchGraph from a list of SubGraph s . Note that the additional data of each SubGraph must have the same type and all dimensions except axis = 0 must be equal .
function: def from_graphs(cls, graphs, additional_keys=[]):
      """creates `BatchGraph` from a list of `SubGraph`s.
      Note that the additional data of each SubGraph must have the same
      type and all dimensions except axis=0 must be equal.
  
      Args:
        graphs: `SubGraph` objects.
        additional_keys: Keys(a list) of the additional data.
      """
      graph_node_offsets = BatchGraph._build_graph_node_offsets(graphs)
      graph_edge_offsets = BatchGraph._build_graph_edge_offsets(graphs)
      nodes = BatchGraph._build_data(graphs, 'node')
      edges = BatchGraph._build_data(graphs, 'edge')
      edge_index = BatchGraph._build_edge_index(graphs)
      graph = BatchGraph(edge_index, nodes, None, graph_node_offsets,
                         edges, graph_edge_offsets, additional_keys=additional_keys)
      for key in additional_keys:
        item = BatchGraph._build_additional_data(graphs, key)
        graph[key] = item
      return graph
function_tokens: def from_graphs ( cls , graphs , additional_keys = [ ] ) : graph_node_offsets = BatchGraph . _build_graph_node_offsets ( graphs ) graph_edge_offsets = BatchGraph . _build_graph_edge_offsets ( graphs ) nodes = BatchGraph . _build_data ( graphs , 'node' ) edges = BatchGraph . _build_data ( graphs , 'edge' ) edge_index = BatchGraph . _build_edge_index ( graphs ) graph = BatchGraph ( edge_index , nodes , None , graph_node_offsets , edges , graph_edge_offsets , additional_keys = additional_keys ) for key in additional_keys : item = BatchGraph . _build_additional_data ( graphs , key ) graph [ key ] = item return graph