docstr: Add nodes information to the Graph.
  
  Parameters
  ----------
  nodes : list or cudf.Series
      The nodes of the graph to be stored. If bipartite and multipartite
      arguments are not passed, the nodes are considered to be a list of
      all the nodes present in the Graph.
  bipartite : str, optional (default=None)
      Sets the Graph as bipartite. The nodes are stored as a set of nodes
      of the partition named as bipartite argument.
  multipartite : str, optional (default=None)
      Sets the Graph as multipartite. The nodes are stored as a set of
      nodes of the partition named as multipartite argument.
docstr_tok: ["Add","nodes","information","to","the","Graph",".","Parameters","--","--","--","--","--","nodes",":","list","or","cudf.Series","The","nodes","of","the","graph","to","be","stored",".","If","bipartite","and","multipartite","arguments","are","not","passed",",","the","nodes","are","considered","to","be","a","list","of","all","the","nodes","present","in","the","Graph",".","bipartite",":","str",",","optional","(","default=None",")","Sets","the","Graph","as","bipartite",".","The","nodes","are","stored","as","a","set","of","nodes","of","the","partition","named","as","bipartite","argument",".","multipartite",":","str",",","optional","(","default=None",")","Sets","the","Graph","as","multipartite",".","The","nodes","are","stored","as","a","set","of","nodes","of","the","partition","named","as","multipartite","argument","."]
code: def add_nodes_from(self, nodes, bipartite=None, multipartite=None):
      """
      Add nodes information to the Graph.
  
      Parameters
      ----------
      nodes : list or cudf.Series
          The nodes of the graph to be stored. If bipartite and multipartite
          arguments are not passed, the nodes are considered to be a list of
          all the nodes present in the Graph.
      bipartite : str, optional (default=None)
          Sets the Graph as bipartite. The nodes are stored as a set of nodes
          of the partition named as bipartite argument.
      multipartite : str, optional (default=None)
          Sets the Graph as multipartite. The nodes are stored as a set of
          nodes of the partition named as multipartite argument.
      """
      if bipartite is None and multipartite is None:
          raise Exception("Partition not provided")
      else:
          set_names = [
              i for i in self._nodes.keys() if i != "all_nodes"
          ]
          if multipartite is not None:
              if self.properties.bipartite:
                  raise Exception(
                      "The Graph is bipartite. "
                      "Use bipartite option instead."
                  )
          elif bipartite is not None:
              if not self.properties.bipartite:
                  raise Exception(
                      "The Graph is set as npartite. "
                      "Use multipartite option instead."
                  )
              multipartite = bipartite
              if multipartite not in set_names and len(set_names) == 2:
                  raise Exception(
                      "The Graph is set as bipartite and "
                      "already has two partitions initialized."
                  )
          self._nodes[multipartite] = cudf.Series(nodes)
  
file_path: cugraph/python/cugraph/cugraph/structure/graph_implementation/npartiteGraph.py
imports: from .simpleGraph import simpleGraphImpl
  import cudf
label_desc: Use image node_id 4 for calling the npartiteGraphImpl obj's underlying member method code with example usage: obj.add_nodes_from(nodes, bipartite, multipartite) without return types