@@ -0,0 +1,1332 @@
+# -*- coding: utf-8 -*-%0A%0A%22%22%22This class contains an alternate implemenation of the PyBEL database manager that only stores graphs%0Ain memory%0A%22%22%22%0A%0Afrom pybel.manager import Manager%0A%0A%0Aclass _Namespace(object):%0A    pass%0A%0A%0Aclass DictManager(Manager):%0A    %22%22%22A dictionary-based implementation of the PyBEL Manager%22%22%22%0A%0A    def __init__(self, connection=None):%0A        super(DictManager, self).__init__(connection=connection)%0A%0A        self.universe = None%0A        self.networks = %7B%7D%0A        self.disease_to_id = %7B%7D%0A        self.hash_to_node = %7B%7D%0A%0A    def insert_graph(self, graph, **kwargs):%0A        %22%22%22%0A        :param pybel.BELGraph graph:%0A        :param kwargs: Swallowed. Just used to match signature of pybel.Manager%0A        :rtype: Network%0A        %22%22%22%0A        result = _Namespace()%0A        result.id = len(self.networks)%0A%0A        self.networks%5Bresult.id%5D = graph%0A%0A        return result%0A%0A    def get_graph_by_id(self, network_id):%0A        %22%22%22Returns a graph by its id%0A%0A        :param int network_id:%0A        :rtype: pybel.BELGraph%0A        %22%22%22%0A        return self.networks%5Bnetwork_id%5D%0A%0A    def get_graphs_by_ids(self, network_ids):%0A        %22%22%22%0A        :param list%5Bint%5D network_ids:%0A        :rtype: list%5Bpybel.BELGraph%5D%0A        %22%22%22%0A        return %5B%0A            self.networks%5Bnetwork_id%5D%0A            for network_id in network_ids%0A        %5D%0A

Add dict manager