Beginnings of graph.map()