Map agent addresses to nodes in the graph.

def _addrs2nodes(addrs, G):
    """Map agent addresses to nodes in the graph.
    """
    for i, n in enumerate(G.nodes()):
        G.node[n]['addr'] = addrs[i]