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 a node
  with the given identifier and attributes in the Gephi graph streaming API.
  
  Example::
  
      >>> api = GephiGraphStreamingAPIFormat()
      >>> api.get_add_node_event("spam")
      {'an': {'spam': {}}}
      >>> api.get_add_node_event("spam", dict(ham="eggs"))
      {'an': {'spam': {'ham': 'eggs'}}}
docstr_tok: ["Generates","a","Python","object","corresponding","to","the","event","that","adds","a","node","with","the","given","identifier","and","attributes","in","the","Gephi","graph","streaming","API",".","Example",":",":",">",">",">","api","=","GephiGraphStreamingAPIFormat","(",")",">",">",">","api.get_add_node_event","(","``","spam","''",")","{","'an","'",":","{","'spam","'",":","{","}","}","}",">",">",">","api.get_add_node_event","(","``","spam","''",",","dict","(","ham=","''","eggs","''",")",")","{","'an","'",":","{","'spam","'",":","{","'ham","'",":","'eggs","'","}","}","}"]
code: def get_add_node_event(self, identifier, attributes=None):
      """Generates a Python object corresponding to the event that adds a node
      with the given identifier and attributes in the Gephi graph streaming API.
  
      Example::
  
          >>> api = GephiGraphStreamingAPIFormat()
          >>> api.get_add_node_event("spam")
          {'an': {'spam': {}}}
          >>> api.get_add_node_event("spam", dict(ham="eggs"))
          {'an': {'spam': {'ham': 'eggs'}}}
      """
      return {
          "an": {
              identifier: attributes if attributes is not None else {}
          }
      }
  
imports: import json
  import urllib.error
  import urllib.parse
  import urllib.request
label_desc: Use image node_id 1 for calling the GephiGraphStreamingAPIFormat obj's underlying member method code with example usage: obj.get_add_node_event(identifier, attributes) and returns: dict