mapGraph function

Map additional variables (nodes) to a graph object