class_docstr: Object that implements the Gephi graph streaming API format and returns
  Python objects corresponding to the events defined in the API.
class_docstr_tok: ["Object","that","implements","the","Gephi","graph","streaming","API","format","and","returns","Python","objects","corresponding","to","the","events","defined","in","the","API","."]
docstr: Generates a Python object corresponding to the event that adds an edge
  with the given source, target, directednessr and attributes in the Gephi
  graph streaming API.
docstr_tok: ["Generates","a","Python","object","corresponding","to","the","event","that","adds","an","edge","with","the","given","source",",","target",",","directednessr","and","attributes","in","the","Gephi","graph","streaming","API","."]
code: def get_add_edge_event(
      self, identifier, source, target, directed, attributes=None
  ):
      """Generates a Python object corresponding to the event that adds an edge
      with the given source, target, directednessr and attributes in the Gephi
      graph streaming API.
      """
      result = dict(attributes if attributes is not None else {})
      result["source"] = source
      result["target"] = target
      result["directed"] = bool(directed)
      return {"ae": {identifier: result}}
  
imports: import json
  import urllib.error
  import urllib.parse
  import urllib.request
label_desc: Use image node_id 2 for calling the GephiGraphStreamingAPIFormat obj's underlying member method code with example usage: obj.get_add_edge_event(identifier, source, target, directed, attributes) and returns: dict