'Load relationships for all installed repositories and tool dependencies into in-memnory dictionaries.'

def load_dependency_relationships(self):

    for repository in self.context.query(self.app.install_model.ToolShedRepository).filter((self.app.install_model.ToolShedRepository.table.c.status == self.app.install_model.ToolShedRepository.installation_status.INSTALLED)):
        self.add_entry_to_repository_dependencies_of_installed_repositories(repository)
        self.add_entry_to_installed_repository_dependencies_of_installed_repositories(repository)
        self.add_entry_to_tool_dependencies_of_installed_repositories(repository)
        self.add_entry_to_installed_tool_dependencies_of_installed_repositories(repository)
    for tool_dependency in self.context.query(self.app.install_model.ToolDependency).filter((self.app.install_model.ToolDependency.table.c.status == self.app.install_model.ToolDependency.installation_status.INSTALLED)):
        self.add_entry_to_runtime_tool_dependencies_of_installed_tool_dependencies(tool_dependency)
        self.add_entry_to_installed_runtime_dependent_tool_dependencies_of_installed_tool_dependencies(tool_dependency)
