

def add_proxy(self, proxy_name, element_class, index_class=None):
    "\n        Adds an element proxy to the Graph object for the element class.\n\n        :param proxy_name: Attribute name to use for the proxy.\n        :type proxy_name: str\n\n        :param element_class: Element class managed by this proxy.\n        :type element_class: Element\n\n        :param index_class: Index class for Element's primary index. \n            Defaults to default_index.\n        :type index_class: Index\n\n        :rtype: None\n\n        "
    proxy = self.build_proxy(element_class, index_class)
    self.client.registry.add_proxy(proxy_name, proxy)
    setattr(self, proxy_name, proxy)

dataset/ETHPy150Open espeed/bulbs/bulbs/base/graph.py Graph.add_proxy/original