def METHOD_NAME(self):
    """Return a dictionary mapping IndraNet nodes to INDRA agents."""
    if self.nodes_to_agents:
        return self.nodes_to_agents
    # NOTE: this way of retrieving agents might miss some important
    # agent properties. The recommended way is to provide this mapping
    # externally.
    graph = self.get_graph()
    for node, data in graph.nodes(data=True):
        ag = Agent(node[0], db_refs={data.get('ns'): data.get('id')})
        self.nodes_to_agents[node[0]] = ag
    return self.nodes_to_agents