class_docstr: Initializer for XBNWriter class
  
  Parameters
  ----------
  model: BayesianNetwork Instance
      Model to write
  encoding: str(optional)
      Encoding for test data
  prettyprint: Bool(optional)
      Indentation in output XML if true
  
  Reference
  ---------
  http://xml.coverpages.org/xbn-MSdefault19990414.html
  
  Examples
  --------
  >>> writer = XBNWriter(model)
class_docstr_tok: ["Initializer","for","XBNWriter","class","Parameters","--","--","--","--","--","model",":","BayesianNetwork","Instance","Model","to","write","encoding",":","str","(","optional",")","Encoding","for","test","data","prettyprint",":","Bool","(","optional",")","Indentation","in","output","XML","if","true","Reference","--","--","--","--","-","http",":","\/\/xml.coverpages.org\/xbn-MSdefault19990414.html","Examples","--","--","--","--",">",">",">","writer","=","XBNWriter","(","model",")"]
docstr: Set edges/arc in the network.
  
  Parameters
  ----------
  edge_list: array_like
      list, tuple, dict or set whose each element has two values (parent, child).
  
  Examples
  --------
  >>> from pgmpy.readwrite.XMLBeliefNetwork import XBNWriter
  >>> writer = XBNWriter()
  >>> writer.set_edges([('a', 'b'), ('a', 'c'), ('b', 'd'), ('c', 'd'), ('c', 'e')])
docstr_tok: ["Set","edges\/arc","in","the","network",".","Parameters","--","--","--","--","--","edge_list",":","array_like","list",",","tuple",",","dict","or","set","whose","each","element","has","two","values","(","parent",",","child",")",".","Examples","--","--","--","--",">",">",">","from","pgmpy.readwrite.XMLBeliefNetwork","import","XBNWriter",">",">",">","writer","=","XBNWriter","(",")",">",">",">","writer.set_edges","(","[","(","'","a","'",",","'","b","'",")",",","(","'","a","'",",","'","c","'",")",",","(","'","b","'",",","'d","'",")",",","(","'","c","'",",","'d","'",")",",","(","'","c","'",",","'","e","'",")","]",")"]
code: def set_edges(self, edge_list):
      """
      Set edges/arc in the network.
  
      Parameters
      ----------
      edge_list: array_like
          list, tuple, dict or set whose each element has two values (parent, child).
  
      Examples
      --------
      >>> from pgmpy.readwrite.XMLBeliefNetwork import XBNWriter
      >>> writer = XBNWriter()
      >>> writer.set_edges([('a', 'b'), ('a', 'c'), ('b', 'd'), ('c', 'd'), ('c', 'e')])
      """
      structure = etree.SubElement(self.bnmodel, "STRUCTURE")
      for edge in edge_list:
          etree.SubElement(
              structure,
              "ARC",
              attrib={"PARENT": edge[0], "CHILD": edge[1]},
          )
  
imports: import itertools
  import xml.etree.ElementTree
  import networkx
  import numpy
  from pgmpy.factors.discrete import TabularCPD
  from pgmpy.models import BayesianNetwork
label_desc: Use image node_id 8 for calling the XBNWriter obj's underlying member method code with example usage: obj.set_edges(edge_list) without return types